From 3e65f9a2af370143d7c5e37ab3a12d1ffaab04f7 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 2 Feb 2023 11:15:35 +0100 Subject: [PATCH] Workaround upgrade error --- app/src/main/java/eu/faircode/email/DB.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/faircode/email/DB.java b/app/src/main/java/eu/faircode/email/DB.java index 19d877b3e3..31a508967f 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -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" +