Migration from old database (3 years old from 2.2.6) is broken because of ipam squash migration 0026-to-0032 #4545
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Environment
Steps to Reproduce
For the context: I've debuged this situation from a friend, apparently
upgrade.sh
didn't worked for them but looking at the script this is an unrelated bug.python3 manage.py migrate
)Expected Behavior
Database migrations to run without an error.
Observed Behavior
Migrations fails on migration ipam.0026_prefix_ordering_vrf_nulls_first_squashed_0032_role_description with the following traceback:
Solution (I'm sending a PR)
Remove the squashed migration 0026_prefix_ordering_vrf_nulls_first_squashed_0032_role_description, re-run the migrate command, django will apply all 0026 to 0032 migrations one by one without any problem.
I'm sending a PR to fix this.
Kind regards,
The text was updated successfully, but these errors were encountered: