From 00a43df7bfe21b8d21e3ecbcf6dcb726d39f5186 Mon Sep 17 00:00:00 2001 From: Alexandre Bodin Date: Tue, 21 Sep 2021 15:32:49 +0200 Subject: [PATCH] Fix bug after merge --- examples/getstarted/config/database.js | 1 - packages/core/database/lib/dialects/sqlite/index.js | 1 - packages/core/database/lib/migrations/index.js | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/getstarted/config/database.js b/examples/getstarted/config/database.js index f1ada25a0f..d78eb0ebc8 100644 --- a/examples/getstarted/config/database.js +++ b/examples/getstarted/config/database.js @@ -4,7 +4,6 @@ const sqlite = { filename: '.tmp/data.db', }, useNullAsDefault: true, - debug: true, }; const postgres = { diff --git a/packages/core/database/lib/dialects/sqlite/index.js b/packages/core/database/lib/dialects/sqlite/index.js index e073035493..cfa2c81c58 100644 --- a/packages/core/database/lib/dialects/sqlite/index.js +++ b/packages/core/database/lib/dialects/sqlite/index.js @@ -14,7 +14,6 @@ class SqliteDialect extends Dialect { this.schemaInspector = new SqliteSchmeaInspector(db); } - // TODO: use strapi.dir configure() { this.db.config.connection.connection.filename = path.resolve( this.db.config.connection.connection.filename diff --git a/packages/core/database/lib/migrations/index.js b/packages/core/database/lib/migrations/index.js index f798e8b11d..ab18af0078 100644 --- a/packages/core/database/lib/migrations/index.js +++ b/packages/core/database/lib/migrations/index.js @@ -23,7 +23,7 @@ const migrationResolver = path => { }; const createUmzugProvider = db => { - const migrationDir = path.join(strapi.dir, 'database/migrations'); + const migrationDir = path.join(strapi.dirs.root, 'database/migrations'); fse.ensureDirSync(migrationDir);