Add version infromation in sqlx migrate run
output for failed migration
#3129
Labels
enhancement
New feature or request
sqlx migrate run
output for failed migration
#3129
Is your feature request related to a problem? Please describe.
I wish I could see a version output of a migration that failed when running
sqlx migrate run
.Currently only information about underlying problem is shown and no version or file name is shown in command output.
It makes rapid iteration take longer since I have to check the failed migrations by running
sqlx migrate info
to get the latest migration in pending state.Describe the solution you'd like
I'd like to see a information about the version that has caused the program to fail. Ie:
It would enable me to pinpoint specific file that caused a problem without running db query or running
sqlx migrate info
Describe alternatives you've considered
RUST_LOG=debug
to see more verbose output (ie about partial state)The text was updated successfully, but these errors were encountered: