Fix MySQL drop index query

"ON" is required for MySQL
This commit is contained in:
Cédric Krier committed 2013-08-14 11:31:39 +02:00
1 parent a293325aa6
commit fcd983a776
1 file changed
+2 -1
+2 -1
View File
@@ -266,7 +266,8 @@ class TableHandler(TableHandlerInterface):
return
if index_name in self._indexes:
self.cursor.execute('DROP INDEX `%s` ' % (index_name,))
self.cursor.execute('DROP INDEX `%s` ON `%s`'
% (index_name, self.table_name))
self._update_definitions()
else:
raise Exception('Index action not supported!')