Added folder modseq

This commit is contained in:
M66B
2021-04-06 22:25:08 +02:00
parent 7076e9a9a7
commit f0fd4343ba
4 changed files with 2424 additions and 1 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 = 191,
version = 192,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1967,6 +1967,13 @@ public abstract class DB extends RoomDatabase {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `folder` ADD COLUMN `selected_last` INTEGER NOT NULL DEFAULT 0");
}
})
.addMigrations(new Migration(191, 192) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `folder` ADD COLUMN `modseq` INTEGER");
}
});
}