From 31a91cfc10cbcc1c9bea918b6fec7faedb27acf9 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 28 Sep 2024 20:30:58 +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 4a4be9a9a2..3590c2bce7 100644 --- a/app/src/main/java/eu/faircode/email/DB.java +++ b/app/src/main/java/eu/faircode/email/DB.java @@ -3046,6 +3046,11 @@ public abstract class DB extends RoomDatabase { db.execSQL("UPDATE account SET keep_alive_noop = 1" + " WHERE pop = " + EntityAccount.TYPE_IMAP); } + }).addMigrations(new Migration(300, 299) { + @Override + public void migrate(@NonNull SupportSQLiteDatabase db) { + logMigration(startVersion, endVersion); + } }).addMigrations(new Migration(998, 999) { @Override public void migrate(@NonNull SupportSQLiteDatabase db) {