Skip to content

Commit

Permalink
use proper syntax for index drop
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Nov 15, 2011
1 parent da50528 commit 40851ad
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.jumpmind.db.alter.RemoveColumnChange;
import org.jumpmind.db.model.Column;
import org.jumpmind.db.model.Database;
import org.jumpmind.db.model.Index;
import org.jumpmind.db.model.ModelException;
import org.jumpmind.db.model.Table;
import org.jumpmind.db.model.TypeMap;
Expand Down Expand Up @@ -130,4 +131,11 @@ protected void printDefaultValue(Object defaultValue, int typeCode) {
}
}
}

@Override
public void writeExternalIndexDropStmt(Table table, Index index) {
print("DROP INDEX IF EXISTS ");
printIdentifier(getIndexName(index));
printEndOfStatement();
}
}

0 comments on commit 40851ad

Please sign in to comment.