Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
zilencer: Remove index on RemoteInstallationCount.remote_id.
Mateusz Mandera3cbb651942ca
diff --git a/zilencer/migrations/0030_alter_remoteinstallationcount_remote_id.py b/zilencer/migrations/0030_alter_remoteinstallationcount_remote_id.pynew file mode 100644index 00000000000..dbc3c7e1ef8--- /dev/null+++ b/zilencer/migrations/0030_alter_remoteinstallationcount_remote_id.py@@ -0,0 +1,17 @@+# Generated by Django 4.2.6 on 2023-10-20 00:10++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("zilencer", "0029_update_remoterealm_indexes"),+ ]++ operations = [+ migrations.AlterField(+ model_name="remoteinstallationcount",+ name="remote_id",+ field=models.IntegerField(),+ ),+ ]diff --git a/zilencer/models.py b/zilencer/models.pyindex e7cb3a94ce5..f2571039f3c 100644--- a/zilencer/models.py+++ b/zilencer/models.py@@ -133,7 +133,7 @@ class RemoteRealmAuditLog(AbstractRealmAuditLog):class RemoteInstallationCount(BaseCount):server = models.ForeignKey(RemoteZulipServer, on_delete=models.CASCADE)# The remote_id field lets us deduplicate data from the remote server- remote_id = models.IntegerField(db_index=True)+ remote_id = models.IntegerField()class Meta:unique_together = ("server", "property", "subgroup", "end_time")