Create tag_id index for history table

pull/14/head
Sam Bosley 11 years ago
parent 5ac4e10b1d
commit e64d6f540c

@ -153,6 +153,13 @@ public class Database extends AbstractDatabase {
append(')');
database.execSQL(sql.toString());
sql.setLength(0);
sql.append("CREATE INDEX IF NOT EXISTS hist_tag_id ON ").
append(History.TABLE).append('(').
append(History.TAG_ID.name).
append(')');
database.execSQL(sql.toString());
sql.setLength(0);
}
@Override

Loading…
Cancel
Save