mirror of https://github.com/M66B/FairEmail.git
Prepare DANE
This commit is contained in:
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
|
||||
|
||||
@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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue