2017-10-24 01:52:02 +02:00
|
|
|
from django.db import migrations
|
|
|
|
|
2020-01-14 21:59:46 +01:00
|
|
|
|
2017-10-24 01:52:02 +02:00
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("zerver", "0111_botuserstatedata"),
|
2017-10-24 01:52:02 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.RunSQL(
|
2021-02-12 08:20:45 +01:00
|
|
|
"""
|
2017-10-24 01:52:02 +02:00
|
|
|
CREATE INDEX zerver_mutedtopic_stream_topic
|
|
|
|
ON zerver_mutedtopic
|
|
|
|
(stream_id, upper(topic_name))
|
2021-02-12 08:20:45 +01:00
|
|
|
""",
|
|
|
|
reverse_sql="DROP INDEX zerver_mutedtopic_stream_topic;",
|
2017-10-24 01:52:02 +02:00
|
|
|
),
|
|
|
|
]
|