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:
parent
c008fdfb39
commit
e4dbd88810
@ -10,6 +10,10 @@ class Migration(migrations.Migration):
|
|||||||
]
|
]
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
migrations.RemoveConstraint(
|
||||||
|
model_name="workflowstate",
|
||||||
|
name="unique_in_progress_workflow",
|
||||||
|
),
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name="workflowstate",
|
model_name="workflowstate",
|
||||||
name="page",
|
name="page",
|
||||||
@ -54,10 +58,6 @@ class Migration(migrations.Migration):
|
|||||||
name="workflowstate_base_ct_id_idx",
|
name="workflowstate_base_ct_id_idx",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
migrations.RemoveConstraint(
|
|
||||||
model_name="workflowstate",
|
|
||||||
name="unique_in_progress_workflow",
|
|
||||||
),
|
|
||||||
migrations.AddConstraint(
|
migrations.AddConstraint(
|
||||||
model_name="workflowstate",
|
model_name="workflowstate",
|
||||||
constraint=models.UniqueConstraint(
|
constraint=models.UniqueConstraint(
|
||||||
|
Loading…
Reference in New Issue
Block a user