Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

migrations: Switch to AddIndexConcurrently.

Alex Vandiver6418d867634f
diff --git a/zerver/migrations/0510_add_realmauditlog_realm_event_type_index.py b/zerver/migrations/0510_add_realmauditlog_realm_event_type_index.py
index 19711e36b81..cc9e6b6924e 100644
--- a/zerver/migrations/0510_add_realmauditlog_realm_event_type_index.py
+++ b/zerver/migrations/0510_add_realmauditlog_realm_event_type_index.py
@@ -1,15 +1,18 @@
# Generated by Django 4.2.12 on 2024-04-17 10:33
+from django.contrib.postgres.operations import AddIndexConcurrently
from django.db import migrations, models
class Migration(migrations.Migration):
+ atomic = False
+
dependencies = [
("zerver", "0509_fix_emoji_metadata"),
]
operations = [
- migrations.AddIndex(
+ AddIndexConcurrently(
model_name="realmauditlog",
index=models.Index(
fields=["realm", "event_type", "event_time"],