Repository navigation
Fix for faulty data migrations - #4987
Merged
SchrodingersGat merged 3 commits intoJun 8, 2023
Merged
Conversation
- Add custom migration class which handles errors
- Ensure that the new fields are added to the model
This was referenced Jun 7, 2023
Contributor
|
This looks the "proper" way to do it. 👍 I have tested this, starting at two different points (one of which caused problems with the other implementation), and from scratch, all worked. |
miggland
approved these changes
Jun 7, 2023
Member
|
It works on ubuntu + mariadb; I only have access to my production/staging environment with SE Linux in a few hours but it should be good. |
Member
Author
|
@matmair any further input on this or happy for me to merge? |
matmair
approved these changes
Jun 8, 2023
Member
|
I have tested this in multiple instances now - should fix the issue finally |
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #4979
References:
Implements a new fix which does not require any custom SQL, and adds a unit test.
Additionally this migration has been tested multiple times backwards / forwards / upside down