diff options
author | Markus Holtermann <info@markusholtermann.eu> | 2016-05-06 02:13:32 +0200 |
---|---|---|
committer | Markus Holtermann <info@markusholtermann.eu> | 2016-05-07 01:21:00 +0200 |
commit | deeffde84a23660e3dd589abaaa7454f4ee45fda (patch) | |
tree | df613ff66f562c9bbaa12cbfcc1351e76c1eabac /django/db/backends/mysql/schema.py | |
parent | c6499d532d5909c29b4de68de75ea35d752940fb (diff) | |
download | django-deeffde84a23660e3dd589abaaa7454f4ee45fda.tar.gz |
Fixed #26593 -- Leveraged deferrable_sql() in SchemaEditor
Diffstat (limited to 'django/db/backends/mysql/schema.py')
-rw-r--r-- | django/db/backends/mysql/schema.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/django/db/backends/mysql/schema.py b/django/db/backends/mysql/schema.py index 3cdc53c858..802ce6353b 100644 --- a/django/db/backends/mysql/schema.py +++ b/django/db/backends/mysql/schema.py @@ -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" |