Silence old/unshown notifications

This commit is contained in:
M66B
2021-02-15 08:58:05 +01:00
parent 041261e469
commit 8b3302020f
5 changed files with 2407 additions and 3 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 = 187,
version = 188,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1831,6 +1831,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("ALTER TABLE `message` ADD COLUMN `deleted` INTEGER NOT NULL DEFAULT 0");
db.execSQL("ALTER TABLE `message` ADD COLUMN `ui_deleted` INTEGER NOT NULL DEFAULT 0");
}
})
.addMigrations(new Migration(187, 188) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `ui_silent` INTEGER NOT NULL DEFAULT 0");
}
});
}