-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
migrations not reversible #1191
Comments
I tried to make a MR but permission denied to submit the branch. |
Hi @kostrom, did you get the project up and running? You should be able to make a PR from either GitHub desktop and/or by forking the repository and opening a PR from there, those two options are probably the easiest ones. Documentation has a section on the development setup but GitHub Actions also runs the full test matrix with all supported Python and Django versions on a fresh PR push: https://django-axes.readthedocs.io/en/latest/9_contributing.html#development |
During a deployment roll-back, we encountered an irreversible operation exception from django-axes. I had to --fake to rollback 0007
axes/migrations/0007_alter_accessattempt_unique_together.py
line 38 should be
migrations.RunPython(deduplicate_attempts, reverse_code=migrations.reverse_code=migrations.RunPython.noop),
The migration removes some duplicates. When rolling back, it's not necessary (or possible) to restore the duplicates, so the backwards migration should just be a noop.
The text was updated successfully, but these errors were encountered: