Prepare for the worst

This commit is contained in:
M66B 2021-05-20 10:08:44 +02:00
parent 98a5ec7c0f
commit 996fee96fa
2 changed files with 12 additions and 1 deletions

View File

@ -2020,6 +2020,16 @@ public abstract class DB extends RoomDatabase {
db.execSQL("ALTER TABLE `answer` ADD COLUMN `applied` INTEGER NOT NULL DEFAULT 0");
db.execSQL("ALTER TABLE `answer` ADD COLUMN `last_applied` INTEGER");
}
}).addMigrations(new Migration(197, 198) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("UPDATE account" +
" SET partial_fetch = 0" +
" WHERE host = 'imap.vodafonemail.de'" +
" OR host = 'imap.arcor.de'" +
" OR host = 'imap.nexgo.de'");
}
});
}

View File

@ -861,7 +861,8 @@
name="Vodafone.de/Arcor"
appPassword="true"
domain="arcor\\.de,vodafone\\.de,vodafonemail\\.de,nexgo\\.de"
link="https://www.vodafone.de/hilfe/email/abrufen-senden.html#wie-lauten-die-server-einstellungen-fuer-vodafone-e-mail">
link="https://www.vodafone.de/hilfe/email/abrufen-senden.html#wie-lauten-die-server-einstellungen-fuer-vodafone-e-mail"
partial="true">
<imap
host="imap.vodafonemail.de"
port="993"