Revert "Lookup by hash (experimental)"

This reverts commit 105dc80e34.
This commit is contained in:
M66B
2020-04-01 15:00:52 +02:00
parent 105dc80e34
commit 848632abb5
5 changed files with 1 additions and 2245 deletions

View File

@@ -60,7 +60,7 @@ import io.requery.android.database.sqlite.SQLiteDatabase;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 153,
version = 152,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1444,13 +1444,6 @@ public abstract class DB extends RoomDatabase {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `hash` TEXT");
}
})
.addMigrations(new Migration(152, 153) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("CREATE INDEX IF NOT EXISTS `index_message_folder_hash` ON `message` (`folder`, `hash`)");
}
});
}