alter_drop_constraint drop constraint, not index
[dbsrgits/SQL-Translator.git] / lib / SQL / Translator / Producer / MySQL.pm
index c8586a9..9e06b54 100644 (file)
@@ -716,7 +716,7 @@ sub alter_drop_constraint
         push @out, $c->type;
     }
     else {
-        push @out, ($c->type eq FOREIGN_KEY ? $c->type : "INDEX"),
+        push @out, ($c->type eq FOREIGN_KEY ? $c->type : "CONSTRAINT"),
             $generator->quote($c->name);
     }
     return join(' ',@out);