1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-06 06:02:40 +03:00

'migration' -> 'database migration' in startup output

This commit is contained in:
Olivier 'reivilibre
2024-05-14 12:02:00 +01:00
committed by Quentin Gliech
parent f8bfad37a1
commit d20b0a04fe

View File

@@ -45,7 +45,7 @@ use crate::{
#[allow(clippy::struct_excessive_bools)]
#[derive(Parser, Debug, Default)]
pub(super) struct Options {
/// Do not apply pending migrations on start
/// Do not apply pending database migrations on start
#[arg(long)]
no_migrate: bool,
@@ -88,12 +88,12 @@ impl Options {
return Err(anyhow::anyhow!("The server is running with `--no-migrate` but there are pending. Please run them first with `mas-cli database migrate`, or omit the `--no-migrate` flag to apply them automatically on startup."));
}
} else {
info!("Running pending migrations");
info!("Running pending database migrations");
MIGRATOR
.run(&pool)
.instrument(info_span!("db.migrate"))
.await
.context("could not run migrations")?;
.context("could not run database migrations")?;
}
let encrypter = config.secrets.encrypter();