Skip to content

Conversation

eklatzer
Copy link

Hey, here is a PR for the enhanced logging infos when applying migrations, proposed in #266

@eklatzer
Copy link
Author

@rubenv Do you already have an info regarding this PR?

@eldondevat
Copy link

@rubenv Any thoughts on this? We periodically leverage migrations which may run long, and having this log data would really be a quality-of-life improvement when those are applying.

@eklatzer
Copy link
Author

eklatzer commented Sep 3, 2025

@eldondevat As I did not get a response for a long time, I built a workaround for this topic, by:

  1. Calculating the number of missing migrations using PlanMigration
  2. Running each migraton on its own using ExecMax with a limit of one migration

You can find the implementation in: https://github.com/allaboutapps/go-starter/blob/master/cmd/db/migrate.go#L74

Of course it would be nice, to have some kind of support built into sql-migrate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants