2020-04-29 18:44:27 +03:00
|
|
|
const config = require('./core/server/config');
|
|
|
|
const ghostVersion = require('./core/server/lib/ghost-version');
|
2016-10-17 15:50:29 +03:00
|
|
|
|
2017-02-03 18:04:28 +03:00
|
|
|
/**
|
|
|
|
* 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');
|
|
|
|
|
2016-10-17 15:50:29 +03:00
|
|
|
module.exports = {
|
2017-03-02 19:02:23 +03:00
|
|
|
currentVersion: ghostVersion.safe,
|
2016-10-17 15:50:29 +03:00
|
|
|
database: config.get('database'),
|
|
|
|
migrationPath: config.get('paths:migrationPath')
|
2017-01-23 14:32:17 +03:00
|
|
|
};
|