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

Fix initial sync #2

Merged
merged 1 commit into from
Feb 1, 2017
Merged

Fix initial sync #2

merged 1 commit into from
Feb 1, 2017

Conversation

edorivai
Copy link
Contributor

Syncing a DB that hadn't run any migrations yet would crash, because util.syncMode passes completedMigrations[0], which would be undefined. I added a check in isIncludedInDown; if the passed migration is undefined, isUncludedInDown now returns false.

Syncing a DB that hadn't run any migrations yet would crash, because util.syncMode passes `completedMigrations[0]`, which would be undefined. I added a check in `isIncludedInDown`; if the passed migration is undefined, `isUncludedInDown` now returns false.
@wzrdtales
Copy link
Member

Good catch! Thanks for your contribution!

@wzrdtales wzrdtales merged commit 9a3e2b3 into db-migrate:master Feb 1, 2017
@edorivai
Copy link
Contributor Author

edorivai commented Feb 1, 2017

Thanks for merging! Will this be propagated to the npm packages anytime soon?

@wzrdtales
Copy link
Member

yes :)

@wzrdtales
Copy link
Member

published as

@edorivai
Copy link
Contributor Author

edorivai commented Feb 1, 2017

Great, works fine now. Thanks!

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.

2 participants