Added internal domain names option

This commit is contained in:
M66B
2021-04-30 13:09:55 +02:00
parent 20a592c14b
commit 535b1128d2
8 changed files with 2549 additions and 14 deletions

View File

@@ -65,7 +65,7 @@ import static eu.faircode.email.ServiceAuthenticator.AUTH_TYPE_PASSWORD;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 195,
version = 196,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -2007,6 +2007,12 @@ public abstract class DB extends RoomDatabase {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `answer` ADD COLUMN `receipt` INTEGER NOT NULL DEFAULT 0");
}
}).addMigrations(new Migration(195, 196) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `identity` ADD COLUMN `internal` TEXT");
}
});
}