0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

🎨 add knexMigratorFilePath for knex-migrator initialisation (#7583)

no issue
- if we don't pass our root path, it can happen that knex-migrator get's the wrong path when looking for the .knex-migrator file
This commit is contained in:
Katharina Irrgang 2016-10-17 17:10:14 +02:00 committed by Hannah Wolfe
parent d2d0d80f83
commit 133b7e00fd

View file

@ -30,7 +30,9 @@ var debug = require('debug')('ghost:boot:init'),
scheduling = require('./scheduling'),
readDirectory = require('./utils/read-directory'),
utils = require('./utils'),
knexMigrator = new KnexMigrator(),
knexMigrator = new KnexMigrator({
knexMigratorFilePath: config.get('paths:appRoot')
}),
dbHash;
function initDbHashAndFirstRun() {