2022-02-23 07:44:03 +01:00
|
|
|
from django.db import migrations, models
|
|
|
|
from django.db.models import Q
|
2017-06-16 01:03:26 +02:00
|
|
|
|
2020-01-14 21:59:46 +01:00
|
|
|
|
2017-06-16 01:03:26 +02:00
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zerver", "0094_realm_filter_url_validator"),
|
2017-06-16 01:03:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
2022-02-23 07:44:03 +01:00
|
|
|
migrations.AddIndex(
|
|
|
|
model_name="usermessage",
|
|
|
|
index=models.Index(
|
|
|
|
"user_profile",
|
|
|
|
"message",
|
|
|
|
condition=Q(flags__andz=1),
|
|
|
|
name="zerver_usermessage_unread_message_id",
|
|
|
|
),
|
2017-06-16 01:03:26 +02:00
|
|
|
),
|
|
|
|
]
|