Default encrypt on replying to encrypted message

This commit is contained in:
M66B
2019-07-16 18:46:25 +02:00
parent 369a476513
commit a8215cd7bd
8 changed files with 1867 additions and 7 deletions

View File

@@ -54,7 +54,7 @@ import io.requery.android.database.sqlite.RequerySQLiteOpenHelperFactory;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 93,
version = 94,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -911,6 +911,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("ALTER TABLE `message` ADD COLUMN `mx` INTEGER");
}
})
.addMigrations(new Migration(93, 94) {
@Override
public void migrate(SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `encrypt` INTEGER");
}
})
.build();
}