projects
/
dbsrgits/SQL-Translator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
alter_drop_constraint drop constraint, not index
[dbsrgits/SQL-Translator.git]
/
lib
/
SQL
/
Translator
/
Producer
/
MySQL.pm
diff --git
a/lib/SQL/Translator/Producer/MySQL.pm
b/lib/SQL/Translator/Producer/MySQL.pm
index
c8586a9
..
9e06b54
100644
(file)
--- a/
lib/SQL/Translator/Producer/MySQL.pm
+++ b/
lib/SQL/Translator/Producer/MySQL.pm
@@
-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);