Prepare DANE

This commit is contained in:
M66B 2024-01-02 10:17:33 +01:00
parent 80f69c2240
commit 895f4a0f35
4 changed files with 3015 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -67,7 +67,7 @@ import javax.mail.internet.InternetAddress;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 287,
version = 288,
entities = {
EntityIdentity.class,
EntityAccount.class,
@ -2908,6 +2908,13 @@ public abstract class DB extends RoomDatabase {
logMigration(startVersion, endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `auth` INTEGER");
}
}).addMigrations(new Migration(287, 288) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
logMigration(startVersion, endVersion);
db.execSQL("ALTER TABLE `account` ADD COLUMN `dane` INTEGER NOT NULL DEFAULT 0");
db.execSQL("ALTER TABLE `identity` ADD COLUMN `dane` INTEGER NOT NULL DEFAULT 0");
}
}).addMigrations(new Migration(998, 999) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {

View File

@ -81,6 +81,8 @@ public class EntityAccount extends EntityOrder implements Serializable {
@NonNull
public Boolean insecure = false;
@NonNull
public Boolean dane = false;
@NonNull
public Integer port;
@NonNull
public Integer auth_type;

View File

@ -75,6 +75,8 @@ public class EntityIdentity {
@NonNull
public Boolean insecure = false;
@NonNull
public Boolean dane = false;
@NonNull
public Integer port;
@NonNull
public Integer auth_type;