From: Jess Robinson Date: Fri, 1 Feb 2008 23:28:20 +0000 (+0000) Subject: Fix syntax for index dropping in sqlite producer X-Git-Tag: v0.11008~344 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ecf7f25dc6c635164c957607e122da978662040e;p=dbsrgits%2FSQL-Translator.git Fix syntax for index dropping in sqlite producer --- diff --git a/lib/SQL/Translator/Producer/SQLite.pm b/lib/SQL/Translator/Producer/SQLite.pm index a228653..a65043d 100644 --- a/lib/SQL/Translator/Producer/SQLite.pm +++ b/lib/SQL/Translator/Producer/SQLite.pm @@ -337,8 +337,8 @@ sub alter_drop_constraint { alter_drop_index(@_) } sub alter_drop_index { my ($constraint) = @_; - return sprintf("DROP INDEX %s ON %s", - $constraint->name, $constraint->table->name); + return sprintf("DROP INDEX %s", + $constraint->name); } sub batch_alter_table {