Fix MySQL drop index query
"ON" is required for MySQL
This commit is contained in:
1 parent
a293325aa6
commit
fcd983a776
1 file changed
+2
-1
@@ -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!')
|
||||
|
||||
Reference in new issue
Block a user