Show if folder read only

This commit is contained in:
M66B
2019-04-30 09:06:32 +02:00
parent 34dd0be865
commit 0d71716720
7 changed files with 1773 additions and 1 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 = 76,
version = 77,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -780,6 +780,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("ALTER TABLE `folder` ADD COLUMN `order` INTEGER");
}
})
.addMigrations(new Migration(76, 77) {
@Override
public void migrate(SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `folder` ADD COLUMN `read_only` INTEGER NOT NULL DEFAULT 0");
}
})
.build();
}