mirror of https://github.com/M66B/FairEmail.git
Update Arcor.de accounts
This commit is contained in:
parent
9b0c4e572e
commit
385e18364a
|
@ -64,7 +64,7 @@ import static eu.faircode.email.ServiceAuthenticator.AUTH_TYPE_PASSWORD;
|
||||||
// https://developer.android.com/topic/libraries/architecture/room.html
|
// https://developer.android.com/topic/libraries/architecture/room.html
|
||||||
|
|
||||||
@Database(
|
@Database(
|
||||||
version = 177,
|
version = 178,
|
||||||
entities = {
|
entities = {
|
||||||
EntityIdentity.class,
|
EntityIdentity.class,
|
||||||
EntityAccount.class,
|
EntityAccount.class,
|
||||||
|
@ -1738,6 +1738,18 @@ public abstract class DB extends RoomDatabase {
|
||||||
Log.i("DB migration from version " + startVersion + " to " + endVersion);
|
Log.i("DB migration from version " + startVersion + " to " + endVersion);
|
||||||
db.execSQL("ALTER TABLE `account` ADD COLUMN `backoff_until` INTEGER");
|
db.execSQL("ALTER TABLE `account` ADD COLUMN `backoff_until` INTEGER");
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
.addMigrations(new Migration(177, 178) {
|
||||||
|
@Override
|
||||||
|
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||||
|
Log.i("DB migration from version " + startVersion + " to " + endVersion);
|
||||||
|
db.execSQL("UPDATE folder" +
|
||||||
|
" SET poll = 1" +
|
||||||
|
" WHERE type <> '" + EntityFolder.INBOX + "'" +
|
||||||
|
" AND account IN" +
|
||||||
|
" (SELECT id FROM account" +
|
||||||
|
" WHERE host IN ('imap.arcor.de'))");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue