1
0
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:
Claude Paroz
2014-09-21 00:29:13 +02:00
parent ed297061a6
commit 2a1bdf5ced
5 changed files with 10 additions and 10 deletions

View File

@@ -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: