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

Do nothing if migrate! is called on a test DB when que-testing is present #39

Merged
merged 1 commit into from
Aug 1, 2018

Conversation

hlascelles
Copy link
Owner

When que-testing is present, calls to Que.execute do nothing and return an empty array. Thus, trying to migrate a test database will always fail. It is safer to do nothing and not create the que-scheduler tables. This follows the logic of que, which does not create its tables either.

@hlascelles hlascelles force-pushed the do-nothing-if-que-testing-is-present branch from b34c9d1 to 2df1fdf Compare July 13, 2018 19:19
@hlascelles
Copy link
Owner Author

This is to cater for #37

@hlascelles hlascelles force-pushed the do-nothing-if-que-testing-is-present branch from eee6430 to bec689b Compare July 13, 2018 19:32
@hlascelles hlascelles merged commit 860fe1d into master Aug 1, 2018
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