Files
zulip/zerver/migrations/0082_index_starred_user_messages.py
Anders Kaseorg 5703b581fd models: Manage index from migration 0082 with Django.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2022-02-23 11:59:45 -08:00

22 lines
507 B
Python

from django.db import migrations, models
from django.db.models import Q
class Migration(migrations.Migration):
dependencies = [
("zerver", "0081_make_emoji_lowercase"),
]
operations = [
migrations.AddIndex(
model_name="usermessage",
index=models.Index(
"user_profile",
"message",
condition=Q(flags__andnz=2),
name="zerver_usermessage_starred_message_id",
),
),
]