From cd9c049296996fb7b6951fb76c3cc190e82e118a Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 5 Apr 2016 22:25:05 -0700 Subject: [PATCH] Rename database layer models to be consistent --- channels/database_layer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/channels/database_layer.py b/channels/database_layer.py index b9d2b31..d1ec122 100644 --- a/channels/database_layer.py +++ b/channels/database_layer.py @@ -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()):