Fixed #12850 -- Ensured that constraint names are quoted when they are removed. Thanks to Tim Kersten for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9f6a82fafb
commit
4f98a7c45f
|
@ -318,7 +318,7 @@ class BaseDatabaseCreation(object):
|
||||||
(style.SQL_KEYWORD('ALTER TABLE'),
|
(style.SQL_KEYWORD('ALTER TABLE'),
|
||||||
style.SQL_TABLE(qn(table)),
|
style.SQL_TABLE(qn(table)),
|
||||||
style.SQL_KEYWORD(self.connection.ops.drop_foreignkey_sql()),
|
style.SQL_KEYWORD(self.connection.ops.drop_foreignkey_sql()),
|
||||||
style.SQL_FIELD(truncate_name(r_name, self.connection.ops.max_name_length()))))
|
style.SQL_FIELD(qn(truncate_name(r_name, self.connection.ops.max_name_length())))))
|
||||||
del references_to_delete[model]
|
del references_to_delete[model]
|
||||||
return output
|
return output
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue