2020-04-30 02:49:23 +02:00
|
|
|
# Generated by Django 2.2.12 on 2020-04-30 00:35
|
|
|
|
|
|
|
|
from django.db import migrations
|
|
|
|
|
|
|
|
|
|
|
|
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 = [
|
2021-02-12 08:19:30 +01:00
|
|
|
migrations.RunSQL(
|
|
|
|
"""
|
2020-04-30 02:49:23 +02:00
|
|
|
CREATE INDEX CONCURRENTLY IF NOT EXISTS zerver_message_recipient_upper_subject ON zerver_message (recipient_id, upper(subject::text), id DESC NULLS LAST);
|
2021-02-12 08:19:30 +01:00
|
|
|
"""
|
|
|
|
),
|
|
|
|
migrations.RunSQL(
|
|
|
|
"""
|
2020-04-30 02:49:23 +02:00
|
|
|
CREATE INDEX CONCURRENTLY IF NOT EXISTS zerver_message_recipient_subject ON zerver_message (recipient_id, subject, id DESC NULLS LAST);
|
2021-02-12 08:19:30 +01:00
|
|
|
"""
|
|
|
|
),
|
2020-04-30 02:49:23 +02:00
|
|
|
]
|