Set forwarded keyword after sending

This commit is contained in:
M66B
2020-05-06 14:50:30 +02:00
parent 877221cd40
commit 124a86aac8
5 changed files with 29 additions and 6 deletions

View File

@@ -61,7 +61,7 @@ import io.requery.android.database.sqlite.SQLiteDatabase;
// https://developer.android.com/topic/libraries/architecture/room.html
@Database(
version = 156,
version = 157,
entities = {
EntityIdentity.class,
EntityAccount.class,
@@ -1559,6 +1559,13 @@ public abstract class DB extends RoomDatabase {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("CREATE INDEX IF NOT EXISTS `index_message_inreplyto` ON `message` (`inreplyto`)");
}
})
.addMigrations(new Migration(156, 157) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
Log.i("DB migration from version " + startVersion + " to " + endVersion);
db.execSQL("ALTER TABLE `message` ADD COLUMN `wasforwardedfrom` TEXT");
}
});
}