Added notes color

This commit is contained in:
M66B
2021-04-08 09:40:21 +02:00
parent a7ec00e6ea
commit 4497fb060c
9 changed files with 2554 additions and 44 deletions

View File

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