Skip to content

Commit

Permalink
remove unneeded index
Browse files Browse the repository at this point in the history
  • Loading branch information
korelstar authored and stefan-niedermann committed Dec 27, 2019
1 parent ce96025 commit ec97e83
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
db.update(table_notes, values, key_id + " = ? ", new String[]{cursor.getString(0)});
}
cursor.close();
DatabaseIndexUtil.createIndex(db, table_notes, key_excerpt);
}
}

Expand All @@ -283,7 +282,7 @@ private void recreateDatabase(SQLiteDatabase db) {
}

private static void createNotesIndexes(@NonNull SQLiteDatabase db) {
DatabaseIndexUtil.createIndex(db, table_notes, key_remote_id, key_account_id, key_status, key_favorite, key_category, key_modified, key_excerpt);
DatabaseIndexUtil.createIndex(db, table_notes, key_remote_id, key_account_id, key_status, key_favorite, key_category, key_modified);
}

private static void createAccountIndexes(@NonNull SQLiteDatabase db) {
Expand Down

0 comments on commit ec97e83

Please sign in to comment.