Files
zulip/zerver/migrations/0679_zerver_message_edit_history_id.py
Prakhar Pratyush 1462c8ac1b migration: Rename 'general chat' topic to empty string topic.
Zulip now supports empty string as a valid topic name.

For clients predating this feature, such messages appear
in "general chat" topic. Messages sent to "general chat" are
stored in the database as having a "" topic.

This commit adds a migration to rename the existing
"general chat" topic in the database to "".

Fixes parts of #32996.
2025-02-26 13:53:39 -08:00

24 lines
609 B
Python

# Generated by Django 5.1.6 on 2025-02-26 17:25
from django.contrib.postgres.operations import AddIndexConcurrently
from django.db import migrations, models
class Migration(migrations.Migration):
atomic = False
dependencies = [
("zerver", "0678_remove_realm_allow_edit_history"),
]
operations = [
AddIndexConcurrently(
model_name="message",
index=models.Index(
condition=models.Q(("edit_history__isnull", False)),
fields=["id"],
name="zerver_message_edit_history_id",
),
),
]