1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Allow DB downgrade

This commit is contained in:
M66B 2024-06-24 10:18:39 +02:00
parent e6eb6e75a5
commit c722e6f04a

View file

@ -3025,6 +3025,11 @@ public abstract class DB extends RoomDatabase {
logMigration(startVersion, endVersion);
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) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {