From ff7c3a1cf08a25bc82f8117d583530e36f7a80ad Mon Sep 17 00:00:00 2001 From: Katharina Irrgang Date: Fri, 3 Feb 2017 16:04:28 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=20require=20overrides=20in=20Mi?= =?UTF-8?q?gratorConfig.js=20(#7938)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- MigratorConfig.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MigratorConfig.js b/MigratorConfig.js index 38a488edfd..7a6d1fcd6f 100644 --- a/MigratorConfig.js +++ b/MigratorConfig.js @@ -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'),