Skip to content

Commit

Permalink
add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtbuilds committed Aug 12, 2024
1 parent 0852a8c commit c310364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/command/up.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ impl Up {
eprintln!("{}: Created database snapshot.", file_path.display());
}

let iter = pending.iter().take(if self.all { pending.len() } else { 1 });
for migration in iter {
let pending = pending.iter().take(if self.all { pending.len() } else { 1 });
for migration in pending {
debug!("Running migration: {}", migration.name);
let file_path = folder.join(&migration.name).with_extension(migration.migration_type().extension());
let body = fs::read_to_string(&file_path)?;
Expand Down

0 comments on commit c310364

Please sign in to comment.