Prepare DANE

pull/214/head
M66B 2 years ago
parent 80f69c2240
commit 895f4a0f35

File diff suppressed because it is too large Load Diff

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

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

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

Loading…
Cancel
Save