Support for non selectable folders

This commit is contained in:
M66B
2019-07-07 08:17:27 +02:00
parent e8ced5da45
commit 9f6c1f3ea9
11 changed files with 1838 additions and 17 deletions

View File

@@ -54,7 +54,7 @@ import io.requery.android.database.sqlite.RequerySQLiteOpenHelperFactory;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 90,
version = 91,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -890,6 +890,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("ALTER TABLE `message` ADD COLUMN `notifying` INTEGER NOT NULL DEFAULT 0");
}
})
.addMigrations(new Migration(90, 91) {
@Override
public void migrate(SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `folder` ADD COLUMN `selectable` INTEGER NOT NULL DEFAULT 1");
}
})
.build();
}