Added option to use sender name when editing user name

This commit is contained in:
M66B
2021-04-13 09:00:56 +02:00
parent b76f863620
commit 77aa03d0ba
7 changed files with 2468 additions and 4 deletions

View File

@@ -65,7 +65,7 @@ import static eu.faircode.email.ServiceAuthenticator.AUTH_TYPE_PASSWORD;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 193,
version = 194,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1981,6 +1981,13 @@ public abstract class DB extends RoomDatabase {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `notes_color` INTEGER");
}
})
.addMigrations(new Migration(193, 194) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `identity` ADD COLUMN `sender_extra_name` INTEGER NOT NULL DEFAULT 0");
}
});
}