Made UI hide boolean again

This commit is contained in:
M66B
2019-09-27 18:25:55 +02:00
parent 51780f3d15
commit a1d49dba54
14 changed files with 1921 additions and 49 deletions

View File

@@ -58,7 +58,7 @@ import io.requery.android.database.sqlite.RequerySQLiteOpenHelperFactory;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 103,
version = 104,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1027,6 +1027,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("UPDATE `account` SET browse = 1 WHERE pop = 1");
}
})
.addMigrations(new Migration(103, 104) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("UPDATE `message` SET ui_hide = 1 WHERE ui_hide <> 0");
}
})
.build();
}