mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	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.
		
			
				
	
	
		
			24 lines
		
	
	
		
			609 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			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",
 | 
						|
            ),
 | 
						|
        ),
 | 
						|
    ]
 |