0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00

Remove unique constraint before using GenericForeignKey in WorkflowState

Prevent migrations crash on SQLite before https://github.com/django/django/pull/15175 landed in Django
This commit is contained in:
Sage Abdullah 2022-12-22 10:28:16 +00:00
parent c008fdfb39
commit e4dbd88810
No known key found for this signature in database
GPG Key ID: EB1A33CC51CC0217

View File

@ -10,6 +10,10 @@ class Migration(migrations.Migration):
]
operations = [
migrations.RemoveConstraint(
model_name="workflowstate",
name="unique_in_progress_workflow",
),
migrations.AlterField(
model_name="workflowstate",
name="page",
@ -54,10 +58,6 @@ class Migration(migrations.Migration):
name="workflowstate_base_ct_id_idx",
),
),
migrations.RemoveConstraint(
model_name="workflowstate",
name="unique_in_progress_workflow",
),
migrations.AddConstraint(
model_name="workflowstate",
constraint=models.UniqueConstraint(