Show/store signature verified

This commit is contained in:
M66B
2020-06-06 12:14:32 +02:00
parent 913c9ad0d8
commit e9a23ab3e1
6 changed files with 2289 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ import io.requery.android.database.sqlite.SQLiteDatabase;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 161,
version = 162,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1600,6 +1600,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("UPDATE identity SET encrypt = " + ("pgp".equals(encrypt_method) ? 0 : 1));
prefs.edit().remove("default_encrypt_method").apply();
}
})
.addMigrations(new Migration(161, 162) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `verified` INTEGER NOT NULL DEFAULT 0");
}
});
}