Skip to content

fix(create): Fix create when using db-migrate as module #496

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

Merged
merged 2 commits into from
Sep 13, 2017

Conversation

gmanriqueUy
Copy link

Bug introduced on #485

Fixes: #493

@wzrdtales
Copy link
Member

Awesome!
I really appreciate your contribution :)

And sry for the delay, I have little to no time currently due to some approaching events.

@wzrdtales
Copy link
Member

Test fails as you call a new instance without providing a config object or other alternatives, so it searches for database.json.

Here is an example where an empty config is passed over:

https://github.com/db-migrate/node-db-migrate/blob/master/test/integration/api_test.js#L216

@gmanriqueUy
Copy link
Author

@wzrdtales I made some changes and the tests are passing. Tell me if you prefer another way of doing it.

@wzrdtales
Copy link
Member

This is totally fine :)

@wzrdtales wzrdtales merged commit f2be116 into db-migrate:master Sep 13, 2017
wzrdtales added a commit that referenced this pull request Sep 13, 2017
fix(create): Fix create when using db-migrate as module
@wzrdtales
Copy link
Member

Was published as bug fix under

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