Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
1 changed file
with
95 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters