mirror of
				https://github.com/django/daphne.git
				synced 2025-11-04 09:37:32 +03:00 
			
		
		
		
	Rename database layer models to be consistent
This commit is contained in:
		
							parent
							
								
									6006a3181a
								
							
						
					
					
						commit
						cd9c049296
					
				| 
						 | 
				
			
			@ -149,7 +149,7 @@ class DatabaseChannelLayer(object):
 | 
			
		|||
            class Meta:
 | 
			
		||||
                apps = Apps()
 | 
			
		||||
                app_label = "channels"
 | 
			
		||||
                db_table = "django_channels"
 | 
			
		||||
                db_table = "django_channels_channel"
 | 
			
		||||
        # Ensure its table exists
 | 
			
		||||
        if Message._meta.db_table not in self.connection.introspection.table_names(self.connection.cursor()):
 | 
			
		||||
            with self.connection.schema_editor() as editor:
 | 
			
		||||
| 
						 | 
				
			
			@ -171,7 +171,7 @@ class DatabaseChannelLayer(object):
 | 
			
		|||
            class Meta:
 | 
			
		||||
                apps = Apps()
 | 
			
		||||
                app_label = "channels"
 | 
			
		||||
                db_table = "django_channel_groups"
 | 
			
		||||
                db_table = "django_channels_group"
 | 
			
		||||
                unique_together = [["group", "channel"]]
 | 
			
		||||
        # Ensure its table exists with the right schema
 | 
			
		||||
        if Group._meta.db_table not in self.connection.introspection.table_names(self.connection.cursor()):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user