imex: run migrations after receiving a transferred backup

Similarly to how `imex_inner()` runs migrations
after successful call to `import_backup()`,
migrations should be run after receiving a backup
using `transfer_from_provider()`.
This commit is contained in:
link2xt
2023-04-01 23:54:29 +00:00
parent f24843fbb1
commit d6426dc1b6
2 changed files with 7 additions and 0 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## 1.112.5 - unrelesaed
### Fixes
- Run SQL database migrations after receiving a backup from the network. #4287
## [1.112.4] - 2023-03-31
### Fixes

View File

@@ -408,6 +408,7 @@ async fn get_backup_inner(context: &Context, qr: Qr) -> Result<()> {
match transfer_from_provider(context, &ticket).await {
Ok(()) => {
delete_and_reset_all_device_msgs(context).await?;
context.sql.run_migrations(context).await?;
context.emit_event(ReceiveProgress::Completed.into());
Ok(())
}