From ccd43b2f69a5902abebd17f58fe8ed4db26c57eb Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 6 Jan 2025 11:08:45 +0200 Subject: [PATCH] Remove index_together from historical migrations 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! --- tcms/testplans/migrations/0005_squashed.py | 4 ---- tcms/testplans/migrations/0008_remove_autofield.py | 4 ---- 2 files changed, 8 deletions(-) diff --git a/tcms/testplans/migrations/0005_squashed.py b/tcms/testplans/migrations/0005_squashed.py index 2849d41f8b..6770c9f223 100644 --- a/tcms/testplans/migrations/0005_squashed.py +++ b/tcms/testplans/migrations/0005_squashed.py @@ -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", diff --git a/tcms/testplans/migrations/0008_remove_autofield.py b/tcms/testplans/migrations/0008_remove_autofield.py index 7236665f85..39825647b6 100644 --- a/tcms/testplans/migrations/0008_remove_autofield.py +++ b/tcms/testplans/migrations/0008_remove_autofield.py @@ -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",