mirror of https://github.com/django/django.git
Fix non-executed SQL
This commit is contained in:
parent
3074243a5f
commit
f0e09e27f6
|
@ -320,6 +320,7 @@ class BaseDatabaseSchemaEditor(object):
|
|||
"column": self.quote_name(field.column),
|
||||
}
|
||||
}
|
||||
self.execute(sql)
|
||||
# Add any FK constraints later
|
||||
if field.rel and self.connection.features.supports_foreign_keys:
|
||||
to_table = field.rel.to._meta.db_table
|
||||
|
|
Loading…
Reference in New Issue