migrations: Add recently added indexes concurrently.

This commit is contained in:
Tim Abbott 2023-12-05 17:44:04 -08:00
parent bcc58edfda
commit 5e721f4605
1 changed files with 7 additions and 4 deletions

View File

@ -1,15 +1,18 @@
# Generated by Django 4.2.7 on 2023-12-05 19:33
from django.contrib.postgres.operations import AddIndexConcurrently
from django.db import migrations, models
class Migration(migrations.Migration):
atomic = False
dependencies = [
("zilencer", "0044_remoterealmbillinguser"),
]
operations = [
migrations.AddIndex(
AddIndexConcurrently(
model_name="remoterealmauditlog",
index=models.Index(
condition=models.Q(("remote_realm__isnull", True)),
@ -17,7 +20,7 @@ class Migration(migrations.Migration):
name="zilencer_remoterealmauditlog_server_realm",
),
),
migrations.AddIndex(
AddIndexConcurrently(
model_name="remoterealmauditlog",
index=models.Index(
condition=models.Q(("remote_realm__isnull", True)),
@ -25,7 +28,7 @@ class Migration(migrations.Migration):
name="zilencer_remoterealmauditlog_server",
),
),
migrations.AddIndex(
AddIndexConcurrently(
model_name="remoterealmcount",
index=models.Index(
condition=models.Q(("remote_realm__isnull", True)),
@ -33,7 +36,7 @@ class Migration(migrations.Migration):
name="zilencer_remoterealmcount_server_realm",
),
),
migrations.AddIndex(
AddIndexConcurrently(
model_name="remoterealmcount",
index=models.Index(
condition=models.Q(("remote_realm__isnull", True)),