Skip to content

Commit

Permalink
Remove index_together from historical migrations
Browse files Browse the repository at this point in the history
this has been removed in Django 5.1 and is currently failing
(should be fixed in 5.1.5). However Kiwi TCMS has stopped using this
long time ago so just remove it from historical migrations!
  • Loading branch information
atodorov committed Jan 6, 2025
1 parent 0694aa4 commit 0c56cf2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions tcms/testplans/migrations/0005_squashed.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,6 @@ class Migration(migrations.Migration):
on_delete=models.deletion.CASCADE, to="testplans.PlanType"
),
),
migrations.AlterIndexTogether(
name="testplan",
index_together={("product", "plan_id")},
),
migrations.RunPython(forwards_add_initial_data, reverse_add_initial_data),
migrations.CreateModel(
name="HistoricalTestPlan",
Expand Down
4 changes: 0 additions & 4 deletions tcms/testplans/migrations/0008_remove_autofield.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ class Migration(migrations.Migration):
field=models.BooleanField(db_index=True, default=True),
),
# drop TestPlan.plan_id in favor of TestPlan.id
migrations.AlterIndexTogether(
name="testplan",
index_together=set(),
),
migrations.RenameField(
model_name="testplan",
old_name="plan_id",
Expand Down

0 comments on commit 0c56cf2

Please sign in to comment.