Fix non-executed SQL

This commit is contained in:
Andrew Godwin 2012-09-24 12:16:16 +01:00
parent 3074243a5f
commit f0e09e27f6
1 changed files with 1 additions and 0 deletions

View File

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