mirror of
https://github.com/django/django.git
synced 2025-10-30 09:06:13 +00:00
Fixed #26593 -- Leveraged deferrable_sql() in SchemaEditor
This commit is contained in:
@@ -13,10 +13,6 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
|
||||
|
||||
sql_delete_unique = "ALTER TABLE %(table)s DROP INDEX %(name)s"
|
||||
|
||||
sql_create_fk = (
|
||||
"ALTER TABLE %(table)s ADD CONSTRAINT %(name)s FOREIGN KEY "
|
||||
"(%(column)s) REFERENCES %(to_table)s (%(to_column)s)"
|
||||
)
|
||||
sql_delete_fk = "ALTER TABLE %(table)s DROP FOREIGN KEY %(name)s"
|
||||
|
||||
sql_delete_index = "DROP INDEX %(name)s ON %(table)s"
|
||||
|
||||
Reference in New Issue
Block a user