Ghost/MigratorConfig.js

15 lines
451 B
JavaScript
Raw Normal View History

var config = require('./core/server/config'),
2017-12-15 00:14:55 +03:00
ghostVersion = require('./core/server/lib/ghost-version');
/**
* 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: ghostVersion.safe,
database: config.get('database'),
migrationPath: config.get('paths:migrationPath')
};