2022-02-23 07:45:57 +01:00
|
|
|
from django.db import migrations, models
|
|
|
|
from django.db.models import Q
|
2017-06-04 15:10:06 +02:00
|
|
|
|
2020-01-14 21:59:46 +01:00
|
|
|
|
2017-06-04 15:10:06 +02:00
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zerver", "0082_index_starred_user_messages"),
|
2017-06-04 15:10:06 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
2022-02-23 07:45:57 +01:00
|
|
|
migrations.AddIndex(
|
|
|
|
model_name="usermessage",
|
|
|
|
index=models.Index(
|
|
|
|
"user_profile",
|
|
|
|
"message",
|
|
|
|
condition=Q(flags__andnz=8),
|
|
|
|
name="zerver_usermessage_mentioned_message_id",
|
|
|
|
),
|
2017-06-04 15:10:06 +02:00
|
|
|
),
|
|
|
|
]
|