0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server/data/migrations/versions
Katharina Irrgang 91950cfea0
Optimised fixture replacement migration script (#9812)
no issue

- do only look for published old fixture posts
  - otherwise we detect draft old fixture post
  - and then we would replace them with published new fixture posts, which is not a very nice experience for the user
- ensure, if we have found all old fixture posts, replace all of them with the correct date
  - otherwise they are getting replaced and the date is "now"
- in general, this migration script is tricky and it tries to be smart, but there are so many cases we can run into
- to remember: the goal was to replace all old with new fixture posts (e.g. you just installed 1.25 and straight migrate to 2.0 - the old fixture posts should get replaced)
- added more protections to ensure we never delete custom posts using the same fixture post slugs
2018-08-22 13:35:58 +02:00
..
1.3 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
1.4 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
1.5 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
1.7 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
1.9 Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
1.13 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
1.18 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
1.19 Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
1.20 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
1.21 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
1.22 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
1.25 🐛 Fixed 1.25 migration for html field being null 2018-07-25 21:54:44 +02:00
2.0 Optimised fixture replacement migration script (#9812) 2018-08-22 13:35:58 +02:00