Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
'migration' -> 'database migration' in startup output
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre authored and sandhose committed May 16, 2024
1 parent f8bfad3 commit d20b0a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/cli/src/commands/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit d20b0a0

Please sign in to comment.