mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			507 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			507 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from django.db import migrations, models
 | 
						|
from django.db.models import Q
 | 
						|
 | 
						|
 | 
						|
class Migration(migrations.Migration):
 | 
						|
 | 
						|
    dependencies = [
 | 
						|
        ("zerver", "0081_make_emoji_lowercase"),
 | 
						|
    ]
 | 
						|
 | 
						|
    operations = [
 | 
						|
        migrations.AddIndex(
 | 
						|
            model_name="usermessage",
 | 
						|
            index=models.Index(
 | 
						|
                "user_profile",
 | 
						|
                "message",
 | 
						|
                condition=Q(flags__andnz=2),
 | 
						|
                name="zerver_usermessage_starred_message_id",
 | 
						|
            ),
 | 
						|
        ),
 | 
						|
    ]
 |