Changes between Initial Version and Version 1 of Ticket #34128


Ignore:
Timestamp:
Oct 31, 2022, 8:15:13 AM (2 years ago)
Author:
Johannes 'fish' Ziemke
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34128 – Description

    initial v1  
    22
    33I've squashed two migrations,  creating this file:
    4 ```
     4{{{
    55# Generated by Django 3.2 on 2022-10-30 14:15
    66
     
    2323        ),
    2424    ]
    25 ```
     25}}}
    2626
    2727After rolling out the change, I've deleted 0005_achievement_difficulty and 0006_alter_achievement_difficulty.
    2828
    2929Now I've did some more changes to the model, causing django to create the following 0006_alter_achievement_difficulty:
    30 ```
     30{{{
    3131# Generated by Django 3.2 on 2022-10-31 12:59
    3232
     
    4747        ),
    4848    ]
    49 ```
     49}}}
    5050
    5151Which leads to the following error:
    52 ```
     52{{{
    5353  File "/usr/local/lib/python3.10/site-packages/django/db/migrations/graph.py", line 274, in ensure_not_cyclic
    5454    raise CircularDependencyError(", ".join("%s.%s" % n for n in cycle))
    5555django.db.migrations.exceptions.CircularDependencyError: api.0005_achievement_difficulty_squashed_0006_alter_achievement_difficulty
    56 ```
     56}}}
    5757
    5858Renaming the migration file to 0006_alter_achievement_difficulty_new.py fixed it.
Back to Top