Fix syntax for index dropping in sqlite producer
Jess Robinson [Fri, 1 Feb 2008 23:28:20 +0000 (23:28 +0000)]
lib/SQL/Translator/Producer/SQLite.pm

index a228653..a65043d 100644 (file)
@@ -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 {