diff --git a/src/cli/commands/create/index.ts b/src/cli/commands/create/index.ts index 413425d712..f312fc8e22 100644 --- a/src/cli/commands/create/index.ts +++ b/src/cli/commands/create/index.ts @@ -142,9 +142,9 @@ function checkRequirements() { const nodeVersion = process.versions.node; const major = +nodeVersion.split('.')[0]; - if (major < 12) { + if (major < 10) { console.error(`You are running Node ${nodeVersion}.`); - console.error('Directus requires Node 12 and up.'); + console.error('Directus requires Node 10 and up.'); console.error('Please update your Node version and try again.'); process.exit(1); } diff --git a/src/cli/commands/create/questions.ts b/src/cli/commands/create/questions.ts index af437d8dc1..c4253ab7e0 100644 --- a/src/cli/commands/create/questions.ts +++ b/src/cli/commands/create/questions.ts @@ -35,10 +35,10 @@ const database = () => ({ default: 'directus', }); -const username = () => ({ +const user = () => ({ type: 'input', - name: 'username', - message: 'Database Username:', + name: 'user', + message: 'Database User:', }); const password = () => ({ @@ -50,8 +50,8 @@ const password = () => ({ export const databaseQuestions = { sqlite3: [filename], - mysql: [host, port, database, username, password], - pg: [host, port, database, username, password], - oracledb: [host, port, database, username, password], - mssql: [host, port, database, username, password], + mysql: [host, port, database, user, password], + pg: [host, port, database, user, password], + oracledb: [host, port, database, user, password], + mssql: [host, port, database, user, password], }; diff --git a/src/database/run-seed.ts b/src/database/run-seed.ts index b307c9f782..f8536cbdb6 100644 --- a/src/database/run-seed.ts +++ b/src/database/run-seed.ts @@ -60,6 +60,7 @@ export default async function runSeed(knex: Knex, seed: string) { if (columnInfo.default !== undefined) { let defaultValue = columnInfo.default; + if (isObject(defaultValue) || Array.isArray(defaultValue)) defaultValue = JSON.stringify(defaultValue);