mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 00:53:26 +02:00
Prepare for the worst
This commit is contained in:
@@ -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'");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user