You've already forked authentication-service
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:
committed by
Quentin Gliech
parent
f8bfad37a1
commit
d20b0a04fe
@@ -45,7 +45,7 @@ use crate::{
|
|||||||
#[allow(clippy::struct_excessive_bools)]
|
#[allow(clippy::struct_excessive_bools)]
|
||||||
#[derive(Parser, Debug, Default)]
|
#[derive(Parser, Debug, Default)]
|
||||||
pub(super) struct Options {
|
pub(super) struct Options {
|
||||||
/// Do not apply pending migrations on start
|
/// Do not apply pending database migrations on start
|
||||||
#[arg(long)]
|
#[arg(long)]
|
||||||
no_migrate: bool,
|
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."));
|
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 {
|
} else {
|
||||||
info!("Running pending migrations");
|
info!("Running pending database migrations");
|
||||||
MIGRATOR
|
MIGRATOR
|
||||||
.run(&pool)
|
.run(&pool)
|
||||||
.instrument(info_span!("db.migrate"))
|
.instrument(info_span!("db.migrate"))
|
||||||
.await
|
.await
|
||||||
.context("could not run migrations")?;
|
.context("could not run database migrations")?;
|
||||||
}
|
}
|
||||||
|
|
||||||
let encrypter = config.secrets.encrypter();
|
let encrypter = config.secrets.encrypter();
|
||||||
|
Reference in New Issue
Block a user