2016-11-07 12:39:49 +01:00
|
|
|
var config = require('./core/server/config'),
|
2017-12-14 22:14:55 +01:00
|
|
|
ghostVersion = require('./core/server/lib/ghost-version');
|
2016-10-17 14:50:29 +02:00
|
|
|
|
2017-02-03 16:04:28 +01: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 14:50:29 +02:00
|
|
|
module.exports = {
|
2017-03-02 17:02:23 +01:00
|
|
|
currentVersion: ghostVersion.safe,
|
2016-10-17 14:50:29 +02:00
|
|
|
database: config.get('database'),
|
|
|
|
migrationPath: config.get('paths:migrationPath')
|
2017-01-23 12:32:17 +01:00
|
|
|
};
|