summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/schema.py
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2012-08-30 23:11:56 +0100
committerAndrew Godwin <andrew@aeracode.org>2012-08-30 23:11:56 +0100
commitd865503389c7ebc1341f5b8f993858505289c6cd (patch)
treec5c6353ed2096ab82edd66baa5c85052e64308ec /django/db/backends/mysql/schema.py
parentd3d1e599211c31e05d095b878de517dbb6fc998c (diff)
downloaddjango-d865503389c7ebc1341f5b8f993858505289c6cd.tar.gz
db_index alteration mostly working
Diffstat (limited to 'django/db/backends/mysql/schema.py')
-rw-r--r--django/db/backends/mysql/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/mysql/schema.py b/django/db/backends/mysql/schema.py
index efc469d9fb..c5c2e5cf1f 100644
--- a/django/db/backends/mysql/schema.py
+++ b/django/db/backends/mysql/schema.py
@@ -15,7 +15,7 @@ class DatabaseSchemaEditor(BaseDatabaseSchemaEditor):
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_name)s"
+ sql_delete_index = "DROP INDEX %(name)s ON %(table)s"
sql_delete_pk = "ALTER TABLE %(table)s DROP PRIMARY KEY"