Migrations rewind - #10
Merged
Merged
Conversation
…old one to be able to migrate data forward and backward without the primary keys hell for foreignkeys and many2many
…lready there and revert data migration just if version '4.0' of dataset already exists
nastasi-oq
force-pushed
the
migrations-rewind
branch
from
September 23, 2026 15:33
497b15a to
e72df75
Compare
ptormene
reviewed
Sep 24, 2026
| related_name='revdeps') | ||
| deny = models.ManyToManyField('self', symmetrical=False, | ||
| related_name='revdeny') | ||
| # is_pseudoid = models.BooleanField() |
…ility (even if it never happens)
ptormene
approved these changes
Sep 25, 2026
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.
With this PR migration from previous version are fixed using a winning approach like new models a side to old models, migrate data from old models to new ones and than removing old and renaming new models to the old names.
Code for migrate is implemented forward and backward.