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