Needed for a workaround

pull/212/head
M66B 2 years ago
parent 18e642fc8f
commit 256ea4ac27

@ -68,7 +68,7 @@ import javax.mail.internet.InternetAddress;
// https://developer.android.com/topic/libraries/architecture/room.html // https://developer.android.com/topic/libraries/architecture/room.html
@Database( @Database(
version = 266, version = 267,
entities = { entities = {
EntityIdentity.class, EntityIdentity.class,
EntityAccount.class, EntityAccount.class,
@ -2729,6 +2729,12 @@ public abstract class DB extends RoomDatabase {
db.execSQL("CREATE INDEX `index_message_forwarding` ON `message` (`forwarding`)"); db.execSQL("CREATE INDEX `index_message_forwarding` ON `message` (`forwarding`)");
createTriggers(db); createTriggers(db);
} }
}).addMigrations(new Migration(266, 267) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
logMigration(startVersion, endVersion);
// Do nothing
}
}).addMigrations(new Migration(998, 999) { }).addMigrations(new Migration(998, 999) {
@Override @Override
public void migrate(@NonNull SupportSQLiteDatabase db) { public void migrate(@NonNull SupportSQLiteDatabase db) {

Loading…
Cancel
Save