Separated reply check from warnings

This commit is contained in:
M66B
2020-12-23 08:51:26 +01:00
parent 76491b99ee
commit 5f46a319fc
5 changed files with 2364 additions and 18 deletions

View File

@@ -64,7 +64,7 @@ import static eu.faircode.email.ServiceAuthenticator.AUTH_TYPE_PASSWORD;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 179,
version = 180,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1767,6 +1767,13 @@ public abstract class DB extends RoomDatabase {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `folder` ADD COLUMN `local` INTEGER NOT NULL DEFAULT 0");
}
})
.addMigrations(new Migration(179, 180) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `reply_domain` INTEGER");
}
});
}