2020-04-30 02:49:23 +02:00
|
|
|
# Generated by Django 2.2.12 on 2020-04-30 00:35
|
|
|
|
|
2022-02-23 06:21:17 +01:00
|
|
|
from django.contrib.postgres.operations import AddIndexConcurrently
|
|
|
|
from django.db import migrations, models
|
|
|
|
from django.db.models import F
|
|
|
|
from django.db.models.functions import Upper
|
2020-04-30 02:49:23 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
atomic = False
|
|
|
|
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zerver", "0278_remove_userprofile_alert_words"),
|
2020-04-30 02:49:23 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
2022-02-23 06:21:17 +01:00
|
|
|
AddIndexConcurrently(
|
|
|
|
model_name="message",
|
|
|
|
index=models.Index(
|
|
|
|
"recipient",
|
|
|
|
Upper("subject"),
|
|
|
|
F("id").desc(nulls_last=True),
|
|
|
|
name="zerver_message_recipient_upper_subject",
|
|
|
|
),
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
2022-02-23 06:21:17 +01:00
|
|
|
AddIndexConcurrently(
|
|
|
|
model_name="message",
|
|
|
|
index=models.Index(
|
|
|
|
"recipient",
|
|
|
|
"subject",
|
|
|
|
F("id").desc(nulls_last=True),
|
|
|
|
name="zerver_message_recipient_subject",
|
|
|
|
),
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
2020-04-30 02:49:23 +02:00
|
|
|
]
|