mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 10:42:45 +03:00
🐛 require overrides in MigratorConfig.js (#7938)
no issue - if using knex-migrator cli not the whole ghost application is required - that's why we need to ensure the overrides file is loaded - if not, all dates are in local dates
This commit is contained in:
parent
2a52af1d99
commit
ff7c3a1cf0
@ -1,6 +1,12 @@
|
||||
var config = require('./core/server/config'),
|
||||
utils = require('./core/server/utils');
|
||||
|
||||
/**
|
||||
* knex-migrator can be used via CLI or within the application
|
||||
* when using the CLI, we need to ensure that our global overrides are triggered
|
||||
*/
|
||||
require('./core/server/overrides');
|
||||
|
||||
module.exports = {
|
||||
currentVersion: utils.ghostVersion.safe,
|
||||
database: config.get('database'),
|
||||
|
Loading…
Reference in New Issue
Block a user