mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 09:33:54 +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:
parent
c008fdfb39
commit
e4dbd88810
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user