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 transaction support for migrations #3084

merged 7 commits into from Mar 13, 2019


Copy link

@kibertoad kibertoad commented Mar 3, 2019

fixes #3063

@kibertoad kibertoad requested a review from elhigu Mar 3, 2019
Copy link
Collaborator Author

@kibertoad kibertoad commented Mar 3, 2019

This fix makes an assumption that we had a pretty good reason why we don't want to modify or clone transaction instances, hence we are only ensuring that they work as much as they used before. If it is OK to modify or clone transaction instances, better solution could be implemented

Latest version makes processing disabling work on transactions as well.

this.knex = knex.withUserParams({
Copy link
Collaborator Author

@kibertoad kibertoad Mar 4, 2019

Moved this inside operations instead to ensure correct state before each of them, regardless of how previous ones ended.

@kibertoad kibertoad merged commit 24fcf27 into master Mar 13, 2019
2 of 3 checks passed
@kibertoad kibertoad deleted the fix/3063-migrations-in-transactions branch Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet
Linked issues

Successfully merging this pull request may close these issues.

1 participant