mirror of
https://github.com/strapi/strapi.git
synced 2025-11-11 07:39:16 +00:00
Fix bug after merge
This commit is contained in:
parent
5b0ac47435
commit
00a43df7bf
@ -4,7 +4,6 @@ const sqlite = {
|
|||||||
filename: '.tmp/data.db',
|
filename: '.tmp/data.db',
|
||||||
},
|
},
|
||||||
useNullAsDefault: true,
|
useNullAsDefault: true,
|
||||||
debug: true,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const postgres = {
|
const postgres = {
|
||||||
|
|||||||
@ -14,7 +14,6 @@ class SqliteDialect extends Dialect {
|
|||||||
this.schemaInspector = new SqliteSchmeaInspector(db);
|
this.schemaInspector = new SqliteSchmeaInspector(db);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: use strapi.dir
|
|
||||||
configure() {
|
configure() {
|
||||||
this.db.config.connection.connection.filename = path.resolve(
|
this.db.config.connection.connection.filename = path.resolve(
|
||||||
this.db.config.connection.connection.filename
|
this.db.config.connection.connection.filename
|
||||||
|
|||||||
@ -23,7 +23,7 @@ const migrationResolver = path => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const createUmzugProvider = db => {
|
const createUmzugProvider = db => {
|
||||||
const migrationDir = path.join(strapi.dir, 'database/migrations');
|
const migrationDir = path.join(strapi.dirs.root, 'database/migrations');
|
||||||
|
|
||||||
fse.ensureDirSync(migrationDir);
|
fse.ensureDirSync(migrationDir);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user