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

22 lines
511 B
Python

from django.db import migrations, models
from django.db.models import Q
class Migration(migrations.Migration):
dependencies = [
("zerver", "0094_realm_filter_url_validator"),
]
operations = [
migrations.AddIndex(
model_name="usermessage",
index=models.Index(
"user_profile",
"message",
condition=Q(flags__andz=1),
name="zerver_usermessage_unread_message_id",
),
),
]