Files
zulip/zerver/migrations/0279_message_recipient_subject_indexes.py
Anders Kaseorg 6e4c3e41dc python: Normalize quotes with Black.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
2021-02-12 13:11:19 -08:00

25 lines
695 B
Python

# Generated by Django 2.2.12 on 2020-04-30 00:35
from django.db import migrations
class Migration(migrations.Migration):
atomic = False
dependencies = [
("zerver", "0278_remove_userprofile_alert_words"),
]
operations = [
migrations.RunSQL(
"""
CREATE INDEX CONCURRENTLY IF NOT EXISTS zerver_message_recipient_upper_subject ON zerver_message (recipient_id, upper(subject::text), id DESC NULLS LAST);
"""
),
migrations.RunSQL(
"""
CREATE INDEX CONCURRENTLY IF NOT EXISTS zerver_message_recipient_subject ON zerver_message (recipient_id, subject, id DESC NULLS LAST);
"""
),
]