mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	python: Reformat with Black, except quotes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							5028c081cb
						
					
				
				
					commit
					11741543da
				
			@@ -10,9 +10,11 @@ class Migration(migrations.Migration):
 | 
			
		||||
        # We do Stream lookups case-insensitively with respect to the name, but we were missing
 | 
			
		||||
        # the appropriate (realm_id, upper(name::text)) unique index to enforce uniqueness
 | 
			
		||||
        # on database level.
 | 
			
		||||
        migrations.RunSQL("""
 | 
			
		||||
        migrations.RunSQL(
 | 
			
		||||
            """
 | 
			
		||||
            CREATE UNIQUE INDEX zerver_stream_realm_id_name_uniq ON zerver_stream (realm_id, upper(name::text));
 | 
			
		||||
        """),
 | 
			
		||||
        """
 | 
			
		||||
        ),
 | 
			
		||||
        migrations.AlterUniqueTogether(
 | 
			
		||||
            name='stream',
 | 
			
		||||
            unique_together=set(),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user