mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
migrations: Add missing elidable tags on RunPython/RunSQL steps.
This helps the squashmigrations tool know that it can squash these.
This commit is contained in:
@@ -32,5 +32,6 @@ class Migration(migrations.Migration):
|
||||
# The updated table is still valid with the old schema;
|
||||
# so to reverse, a no-op suffices.
|
||||
reverse_sql=[],
|
||||
elidable=True,
|
||||
),
|
||||
]
|
||||
|
@@ -49,7 +49,9 @@ class Migration(migrations.Migration):
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(clear_duplicate_counts, reverse_code=migrations.RunPython.noop),
|
||||
migrations.RunPython(
|
||||
clear_duplicate_counts, reverse_code=migrations.RunPython.noop, elidable=True
|
||||
),
|
||||
migrations.AddConstraint(
|
||||
model_name="remoteinstallationcount",
|
||||
constraint=models.UniqueConstraint(
|
||||
|
@@ -35,5 +35,7 @@ class Migration(migrations.Migration):
|
||||
name="plan_type",
|
||||
field=models.PositiveSmallIntegerField(default=PLAN_TYPE_SELF_MANAGED),
|
||||
),
|
||||
migrations.RunPython(renumber_plan_types, reverse_code=migrations.RunPython.noop),
|
||||
migrations.RunPython(
|
||||
renumber_plan_types, reverse_code=migrations.RunPython.noop, elidable=True
|
||||
),
|
||||
]
|
||||
|
Reference in New Issue
Block a user