Added POP3 option to leave messages on server

This commit is contained in:
M66B
2019-09-25 13:26:56 +02:00
parent 8e245517f3
commit 13997a0848
9 changed files with 1904 additions and 12 deletions

View File

@@ -58,7 +58,7 @@ import io.requery.android.database.sqlite.RequerySQLiteOpenHelperFactory;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 102,
version = 103,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1020,6 +1020,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("ALTER TABLE `account` ADD COLUMN `auto_seen` INTEGER NOT NULL DEFAULT 1");
}
})
.addMigrations(new Migration(102, 103) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("UPDATE `account` SET browse = 1 WHERE pop = 1");
}
})
.build();
}