Added searching for invites

This commit is contained in:
M66B
2020-06-19 15:18:43 +02:00
parent 25229c60aa
commit 8379b3b6cd
9 changed files with 2317 additions and 7 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 = 164,
version = 165,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1628,6 +1628,14 @@ public abstract class DB extends RoomDatabase {
db.execSQL("DROP TRIGGER attachment_delete");
createTriggers(db);
}
})
.addMigrations(new Migration(164, 165) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("CREATE INDEX IF NOT EXISTS `index_attachment_message_type` ON `attachment` (`message`, `type`)");
createTriggers(db);
}
});
}