Ghost/ghost/core/MigratorConfig.js
Daniel Lockyer 3d989eba23 Converted Ghost repo into a monorepo
refs https://github.com/TryGhost/Toolbox/issues/354

- this commit turns the Ghost repo into a monorepo so we can bring our
  internal packages back in, which makes life easier when working on
  Ghost
2022-07-20 16:41:05 +02:00

15 lines
441 B
JavaScript

const config = require('./core/shared/config');
const ghostVersion = require('@tryghost/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')
};