2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00
Ghost/core/test/utils
Katharina Irrgang 584bd15b76 🔥 remove database version (#7894)
refs #7489

- as we are now using a different migration approach (knex-migrator), we don't need to remember the database version anymore
- it was once used to check the state of a database and based on it we decided to migrate or not
- with knex-migrator everything depends on the migration table entries and the current ghost version you are on
- on current master the leftover usage is to add the db version when exporting the database, which can be replaced by reading the ghost version
- removing this solves also an interesting migration case with knex-migrator:
  - you are on 1.0
  - you update to 1.1, but 1.1 has no migrations
  - the db version would remain in 1.0
  - because the db version was only updated when knex migrator executed a migration
2017-01-26 12:12:00 +00:00
..
fixtures 🔥 remove database version (#7894) 2017-01-26 12:12:00 +00:00
mocks improvement: add mocks helper module for test env 2016-06-10 09:23:00 +02:00
api.js 🎨 Use GhostAuth name and example emails (#7475) 2016-10-03 15:11:43 +01:00
assertions.js 🎉 🎨 Remove middleware/index.js (#7548) 2016-10-13 17:24:09 +02:00
configUtils.js 🚨 change logic for test/utils/configUtils 2016-09-20 15:59:34 +01:00
fork.js knex migrator (#7565) 2016-10-17 13:50:29 +01:00
index.js 🔥 😎 remove old migrations (#7887) 2017-01-25 13:47:49 +00:00