Added settings to limit number of POP3 messages

This commit is contained in:
M66B
2020-02-26 13:16:09 +01:00
parent 7708165e8e
commit ad0d326cde
8 changed files with 2220 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ import io.requery.android.database.sqlite.SQLiteDatabase;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 145,
version = 146,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1394,6 +1394,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("ALTER TABLE `folder` ADD COLUMN `poll_factor` INTEGER NOT NULL DEFAULT 1");
db.execSQL("ALTER TABLE `folder` ADD COLUMN `poll_count` INTEGER NOT NULL DEFAULT 0");
}
})
.addMigrations(new Migration(145, 146) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `account` ADD COLUMN `max_messages` INTEGER");
}
});
}