-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing squashed migrations prevents migration #822
Comments
Once a set of migrations have been squashed, they cannot be un-squashed without breaking existing projects. It's too late. It should work to upgrade to 3.0.0, run |
Perhaps this could be better called out in the changelog for those of us upgrading from old versions? @jribbens solution (uninstall, install 3.0.1, migrate, upgrade) worked |
Happy to take a MR to add a note to the changelog.
…On Wed, 29 Apr 2020 at 18:18, mark beasley ***@***.***> wrote:
Perhaps this could be better called out in the changelog for those of us
upgrading from old versions? @jribbens <https://github.com/jribbens>
solution (uninstall, install 3.0.1, migrate, upgrade) worked
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#822 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABEKCGMBLUSDXQOOI7MV4DRPBOMTANCNFSM4KV3O5YA>
.
|
m4rk3r
added a commit
to m4rk3r/django-reversion
that referenced
this issue
Apr 29, 2020
When upgrading from old versions it's necessary to incrementally upgrade at version `3.0.1`, run migrations, and then proceed. [See here](etianen#822 (comment))
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because the migrations have been squashed, migration is impossible as it returns the following error:
django.db.utils.ProgrammingError: relation "reversion_revision" already exists
... you have topip install django-reversion==3.0.1 && ./manage.py migrate reversion && pip install -U django-reversion
If there were only 4 of them and somehow having both the originals and the squashed one causes problems, why not just remove the squashed one and keep the originals?
The text was updated successfully, but these errors were encountered: