mirror of
https://github.com/django/django.git
synced 2025-10-29 08:36:09 +00:00
Called table_names instead of get_table_list in migrations
This commit is contained in:
@@ -46,7 +46,7 @@ class MigrationRecorder(object):
|
||||
"""
|
||||
# If the table's there, that's fine - we've never changed its schema
|
||||
# in the codebase.
|
||||
if self.Migration._meta.db_table in self.connection.introspection.get_table_list(self.connection.cursor()):
|
||||
if self.Migration._meta.db_table in self.connection.introspection.table_names(self.connection.cursor()):
|
||||
return
|
||||
# Make the table
|
||||
with self.connection.schema_editor() as editor:
|
||||
|
||||
Reference in New Issue
Block a user