Changes between Initial Version and Version 1 of Ticket #34128
- Timestamp:
- Oct 31, 2022, 8:15:13 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34128 – Description
initial v1 2 2 3 3 I've squashed two migrations, creating this file: 4 ``` 4 {{{ 5 5 # Generated by Django 3.2 on 2022-10-30 14:15 6 6 … … 23 23 ), 24 24 ] 25 ``` 25 }}} 26 26 27 27 After rolling out the change, I've deleted 0005_achievement_difficulty and 0006_alter_achievement_difficulty. 28 28 29 29 Now I've did some more changes to the model, causing django to create the following 0006_alter_achievement_difficulty: 30 ``` 30 {{{ 31 31 # Generated by Django 3.2 on 2022-10-31 12:59 32 32 … … 47 47 ), 48 48 ] 49 ``` 49 }}} 50 50 51 51 Which leads to the following error: 52 ``` 52 {{{ 53 53 File "/usr/local/lib/python3.10/site-packages/django/db/migrations/graph.py", line 274, in ensure_not_cyclic 54 54 raise CircularDependencyError(", ".join("%s.%s" % n for n in cycle)) 55 55 django.db.migrations.exceptions.CircularDependencyError: api.0005_achievement_difficulty_squashed_0006_alter_achievement_difficulty 56 ``` 56 }}} 57 57 58 58 Renaming the migration file to 0006_alter_achievement_difficulty_new.py fixed it.