0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/data/migration/fixtures
Hannah Wolfe 9030620b23 Ensure fixture operations only run if needed
refs #6301

- Make sure that every fixture operation has a check to ensure that it hasn't already run
- E.g. The update of sort_order on posts_tags should only happen if there are no values which aren't a zero
  - This makes sure that we don't accidentally overwrite data on FORCE_MIGRATE
- No need to try to set settings types if they are already correct
- Only update the admin client if it needs it, else we're regenerating secrets each time
2016-03-21 18:15:01 +00:00
..
004 Ensure fixture operations only run if needed 2016-03-21 18:15:01 +00:00
fixtures.json Refactor & test fixture migrations 2016-03-03 09:03:37 +00:00
index.js Split migrations/index.js & add tests 2016-03-15 10:11:33 +00:00
populate.js Split migrations/index.js & add tests 2016-03-15 10:11:33 +00:00
settings.js Split migrations/index.js & add tests 2016-03-15 10:11:33 +00:00
update.js Rewrite DB update to be explicit 2016-03-17 21:17:19 +00:00