Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(errors): Add migration name for migrate/rollback errors #11

Merged
merged 1 commit into from
Aug 24, 2018

Conversation

robinjoseph08
Copy link
Owner

if an error occurs during a migration or a rollback, the error is annotated with the name of the migration that caused the error. this makes it easier to debug the source of the error. for example:

$ go run example/*.go migrate
Running batch 1 with 1 migration(s)...
2018/08/23 19:36:52 20180812001528_create_users_table: ERROR #42601 syntax error at or near ")" (addr="[::1]:5432")
exit status 1

@robinjoseph08 robinjoseph08 merged commit e0c4755 into master Aug 24, 2018
@robinjoseph08 robinjoseph08 deleted the name-errors branch August 24, 2018 02:53
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.

1 participant