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

Reject migration if umzug can't find the migration method #115

Merged
merged 1 commit into from
Apr 20, 2017

Conversation

leviathanbadger
Copy link
Contributor

Rationale: you will never have a no-op migration. Currently, if the up or down methods can't be found when running a migration, Umzug replaces the method body with Promise.resolve() and tells you that the migration was run correctly. (It wasn't.)

This PR rejects the migration if you try to run it but that function doesn't exist.

@mention-bot
Copy link

@aboveyou00, thanks for your PR! By analyzing the history of the files in this pull request, we identified @sdepold, @jukkah and @crrobinson14 to be potential reviewers.

@crrobinson14
Copy link
Contributor

My contributions to this code block were tiny, just swept in from #76. But I heartily endorse this contribution. ;)

@leviathanbadger
Copy link
Contributor Author

Do I need to create an issue in order to get this pulled in? I couldn't find any details on contributing, but I know different repositories have different processes...

@jukkah
Copy link
Contributor

jukkah commented Apr 20, 2017

LGTM, merging 👍

@jukkah jukkah merged commit 1163c1b into sequelize:master Apr 20, 2017
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.

4 participants