implemented optional logger to log details when applying migrations
Hey, here is a PR for the enhanced logging infos when applying migrations, proposed in https://github.com/rubenv/sql-migrate/issues/266
@rubenv Do you already have an info regarding this PR?
@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.
@eldondevat As I did not get a response for a long time, I built a workaround for this topic, by:
- Calculating the number of missing migrations using
PlanMigration - Running each migraton on its own using
ExecMaxwith 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