2022-02-23 07:38:38 +01:00
|
|
|
from django.db import migrations, models
|
|
|
|
from django.db.models import Q
|
2017-08-16 21:51:26 +02:00
|
|
|
|
2020-01-14 21:59:46 +01:00
|
|
|
|
2017-08-16 21:51:26 +02:00
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zerver", "0098_index_has_alert_word_user_messages"),
|
2017-08-16 21:51:26 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
2022-02-23 07:38:38 +01:00
|
|
|
migrations.AddIndex(
|
|
|
|
model_name="usermessage",
|
|
|
|
index=models.Index(
|
|
|
|
"user_profile",
|
|
|
|
"message",
|
|
|
|
condition=Q(flags__andnz=8) | Q(flags__andnz=16),
|
|
|
|
name="zerver_usermessage_wildcard_mentioned_message_id",
|
|
|
|
),
|
2017-08-16 21:51:26 +02:00
|
|
|
),
|
|
|
|
]
|