Fetch SMTP max message size

This commit is contained in:
M66B
2020-07-01 23:34:53 +02:00
parent e109fa4b46
commit b39ed003b6
8 changed files with 2310 additions and 4 deletions

View File

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