rubenv / sql-migrate

SQL schema migration tool for Go.
MIT License
3.24k stars 280 forks source link

Print error message on redo command #150

Closed jecepeda closed 5 years ago

jecepeda commented 5 years ago

When you want to reapply a migration and there is an error, sql-migrate shows: Nothing to do! Which is not true in the case of having errors. Now, in order to know which error do you have, you need to perform sql-migrate down and then up again.

The proposal is to print the error and exit the program

rubenv commented 5 years ago

Good catch! Thanks a lot!