Allow DB downgrade

pull/215/head
M66B 6 months ago
parent e6eb6e75a5
commit c722e6f04a

@ -3025,6 +3025,11 @@ public abstract class DB extends RoomDatabase {
logMigration(startVersion, endVersion); logMigration(startVersion, endVersion);
db.execSQL("UPDATE `account` SET `prefix` = NULL"); db.execSQL("UPDATE `account` SET `prefix` = NULL");
} }
}).addMigrations(new Migration(297, 296) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
logMigration(startVersion, endVersion);
}
}).addMigrations(new Migration(998, 999) { }).addMigrations(new Migration(998, 999) {
@Override @Override
public void migrate(@NonNull SupportSQLiteDatabase db) { public void migrate(@NonNull SupportSQLiteDatabase db) {

Loading…
Cancel
Save