From c722e6f04ab5777b34a0e2f59374a6a85503a1f1 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 24 Jun 2024 10:18:39 +0200 Subject: [PATCH] Allow DB downgrade --- app/src/main/java/eu/faircode/email/DB.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/DB.java b/app/src/main/java/eu/faircode/email/DB.java index 4dc4c4e58d..fb40879d7c 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -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) {