Added colored stars

This commit is contained in:
M66B
2019-05-15 11:10:47 +02:00
parent 0b12570133
commit 5529099ade
12 changed files with 1926 additions and 21 deletions

View File

@@ -51,7 +51,7 @@ import io.requery.android.database.sqlite.RequerySQLiteOpenHelperFactory;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 82,
version = 83,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -811,6 +811,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("CREATE INDEX `index_operation_state` ON `operation` (`state`)");
}
})
.addMigrations(new Migration(82, 83) {
@Override
public void migrate(SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `color` INTEGER");
}
})
.build();
}