Skip to content

Commit

Permalink
admin/migrate: Inline harness variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Nov 14, 2024
1 parent 15d780d commit 3aae025
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bin/crates-admin/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ pub async fn run(_opts: Opts) -> Result<(), Error> {

spawn_blocking(move || {
info!("Migrating the database");
let mut harness = HarnessWithOutput::write_to_stdout(&mut conn);
harness
HarnessWithOutput::write_to_stdout(&mut conn)
.run_pending_migrations(MIGRATIONS)
.map_err(|err| anyhow!("Failed to run migrations: {err}"))?;

Expand Down

0 comments on commit 3aae025

Please sign in to comment.