Highlight unsnoozed messages

This commit is contained in:
M66B
2020-05-19 12:46:35 +02:00
parent ae9b4b2d42
commit a3f7ee6f10
7 changed files with 2282 additions and 4 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 = 158,
version = 159,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1572,6 +1572,13 @@ public abstract class DB extends RoomDatabase {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `uidl` TEXT");
}
})
.addMigrations(new Migration(158, 159) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `ui_unsnoozed` INTEGER NOT NULL DEFAULT 0");
}
});
}