diff --git a/src/sql/migrations.rs b/src/sql/migrations.rs index 92f1c9551..02f13ecf3 100644 --- a/src/sql/migrations.rs +++ b/src/sql/migrations.rs @@ -723,14 +723,14 @@ impl Sql { async fn execute_migration(&self, query: &'static str, version: i32) -> Result<()> { self.transaction(move |transaction| { - transaction.execute_batch(query)?; - // set raw config inside the transaction transaction.execute( "UPDATE config SET value=? WHERE keyname=?;", paramsv![format!("{version}"), VERSION_CFG], )?; + transaction.execute_batch(query)?; + Ok(()) }) .await