Workaround upgrade error

This commit is contained in:
M66B 2023-02-02 11:15:35 +01:00
parent a07731e876
commit 3e65f9a2af
1 changed files with 1 additions and 0 deletions

View File

@ -2427,6 +2427,7 @@ public abstract class DB extends RoomDatabase {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
logMigration(startVersion, endVersion);
dropTriggers(db);
db.execSQL("UPDATE account" +
" SET max_messages = MAX(max_messages, MIN(max_messages * 4," +
" (SELECT COUNT(*) FROM folder" +