@Override
protected void recreateIndex(Statement sth, boolean unique, boolean btree,
String iName, String table, String columns) {
iName = table + iName;
String sql = "DROP INDEX " + iName;
log().t(sql);
try {
sth.execute(sql.toString());
} catch (Exception e) {
log().i(sql,e);
}
sql = "CREATE " + (unique ? "UNIQUE" : "" ) + " INDEX " + iName + (btree ? " USING BTREE" : "") +" ON "+table+ "("+columns+")";
log().t(sql);
try {
sth.execute(sql.toString());
} catch (Exception e) {
log().i(sql,e);
}
}