fix: authifier should not use transactions for migrations

This commit is contained in:
izzy
2025-05-14 11:40:07 +01:00
parent 5362e84730
commit 4f13f5899b
6 changed files with 11 additions and 10 deletions

View File

@@ -97,7 +97,7 @@ web-push = "0.10.0"
revolt_a2 = { version = "0.10", default-features = false, features = ["ring"] }
# Authifier
authifier = { version = "1.0.13", features = ["rocket_impl"] }
authifier = { version = "1.0.15", features = ["rocket_impl"] }
# RabbitMQ
amqprs = { version = "1.7.0" }

View File

@@ -21,7 +21,7 @@ struct MigrationInfo {
revision: i32,
}
pub const LATEST_REVISION: i32 = 32;
pub const LATEST_REVISION: i32 = 33; // MUST BE +1 to last migration
pub async fn migrate_database(db: &MongoDb) {
let migrations = db.col::<Document>("migrations");