Ghost/core/server/adapters/scheduling
kirrg001 23b4fd26c6 Moved knex-migrator execution into Ghost
refs #9742, refs https://github.com/TryGhost/Ghost-CLI/issues/759

- required a reordering of Ghost's bootstrap file, because:
  - we have to ensure that no database queries are executed within Ghost during the migrations
  - make 3 sections: check if db needs initialisation, bootstrap Ghost with minimal components (db/models, express apps, load settings+theme)
- create a new `migrator` utility, which tells you which state your db is in and offers an API to execute knex-migrator based on this state
- ensure we still detect an incompatible db: you connect your 2.0 blog with a 0.11 database
- enable maintenance mode if migrations are missing
- if the migration have failed, knex-migrator roll auto rollback
  - you can automatically switch to 1.0 again
- added socket communication for the CLI
2018-08-16 12:13:24 +02:00
..
post-scheduling ES6 migration: server/adapters/scheduling/post-scheduling (#9698) 2018-06-26 00:46:31 +02:00
index.js ES6 migration: server/adapters/scheduling/post-scheduling (#9698) 2018-06-26 00:46:31 +02:00
SchedulingBase.js 🎨 Move scheduling and storage in adapters/ (#8435) 2017-05-15 12:52:01 +02:00
SchedulingDefault.js Moved knex-migrator execution into Ghost 2018-08-16 12:13:24 +02:00
utils.js ES6 migration: server/adapters/scheduling/utils.js (#9689) 2018-06-14 19:15:12 +02:00