Files
zulip/zilencer/migrations/0017_installationcount_indexes.py
Anders Kaseorg 7e707270f0 models: Convert deprecated index_together option to indexes.
index_together is slated for removal in Django 5.1:
https://docs.djangoproject.com/en/4.2/internals/deprecation/#deprecation-removed-in-5-1

We set the optional index names to match the previously generated
index names to avoid adding new migrations.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2023-07-12 07:12:43 -07:00

27 lines
758 B
Python

# Generated by Django 1.11.20 on 2019-04-23 20:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("zilencer", "0016_remote_counts"),
]
operations = [
migrations.AddIndex(
model_name="remoteinstallationcount",
index=models.Index(
fields=["server", "remote_id"],
name="zilencer_remoteinstallat_server_id_remote_id_f72e4c30_idx",
),
),
migrations.AddIndex(
model_name="remoterealmcount",
index=models.Index(
fields=["server", "remote_id"],
name="zilencer_remoterealmcount_server_id_remote_id_de1573d8_idx",
),
),
]