Added option to check sender's MX records

This commit is contained in:
M66B
2019-07-16 14:44:21 +02:00
parent 4fb3f3c638
commit b8203fe0f0
10 changed files with 1935 additions and 44 deletions

View File

@@ -54,7 +54,7 @@ import io.requery.android.database.sqlite.RequerySQLiteOpenHelperFactory;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 92,
version = 93,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -904,6 +904,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("UPDATE `account` SET poll_interval = 24");
}
})
.addMigrations(new Migration(92, 93) {
@Override
public void migrate(SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `mx` INTEGER");
}
})
.build();
}