migrations: Keep the existing constraints until the new ones are made.

This removes a window where more violations could enter, and also a
period where indexes which may be useful are lacking.
This commit is contained in:
Alex Vandiver
2023-11-22 01:37:26 +00:00
committed by Alex Vandiver
parent 8b0cecc7e4
commit 49263ba69f

View File

@@ -9,14 +9,6 @@ class Migration(migrations.Migration):
]
operations = [
migrations.AlterUniqueTogether(
name="remoteinstallationcount",
unique_together=set(),
),
migrations.AlterUniqueTogether(
name="remoterealmcount",
unique_together=set(),
),
migrations.AddConstraint(
model_name="remoteinstallationcount",
constraint=models.UniqueConstraint(
@@ -49,4 +41,12 @@ class Migration(migrations.Migration):
name="unique_remote_realm_installation_count_null_subgroup",
),
),
migrations.AlterUniqueTogether(
name="remoteinstallationcount",
unique_together=set(),
),
migrations.AlterUniqueTogether(
name="remoterealmcount",
unique_together=set(),
),
]