mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Added option to run rules daily
This commit is contained in:
@@ -67,7 +67,7 @@ import javax.mail.internet.InternetAddress;
|
||||
// https://developer.android.com/topic/libraries/architecture/room.html
|
||||
|
||||
@Database(
|
||||
version = 259,
|
||||
version = 260,
|
||||
entities = {
|
||||
EntityIdentity.class,
|
||||
EntityAccount.class,
|
||||
@@ -2616,6 +2616,12 @@ public abstract class DB extends RoomDatabase {
|
||||
db.execSQL("UPDATE account SET keep_alive_noop = 0" +
|
||||
" WHERE host = 'outlook.office365.com' AND pop = " + EntityAccount.TYPE_IMAP);
|
||||
}
|
||||
}).addMigrations(new Migration(259, 260) {
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||
logMigration(startVersion, endVersion);
|
||||
db.execSQL("ALTER TABLE `rule` ADD COLUMN `daily` INTEGER NOT NULL DEFAULT 0");
|
||||
}
|
||||
}).addMigrations(new Migration(998, 999) {
|
||||
@Override
|
||||
public void migrate(@NonNull SupportSQLiteDatabase db) {
|
||||
|
||||
Reference in New Issue
Block a user