We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It appears that db.insert does not work with a callback. The code involved is here: https://github.com/db-migrate/db-migrate-base/blob/master/index.js#L453
We never reassign the callback variable to arguments[3], so the callback is never called and the migration hangs.
callback
arguments[3]
It looks like at one point we did reassign the callback, but took that out in this commit: 8160337#diff-168726dbe96b3ce427e7fedce31bb0bc
A workaround is to convert to using the promise API.
Instead of
exports.up = function (db, callback) { db.insert('tablename', [ col1 ] , [ val1 ], callback); };
do
exports.up = function (db) { return db.insert('tablename', [ col1 ], [ val1 ]); };
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It appears that db.insert does not work with a callback. The code involved is here: https://github.com/db-migrate/db-migrate-base/blob/master/index.js#L453
We never reassign the
callback
variable toarguments[3]
, so the callback is never called and the migration hangs.It looks like at one point we did reassign the callback, but took that out in this commit: 8160337#diff-168726dbe96b3ce427e7fedce31bb0bc
A workaround is to convert to using the promise API.
Instead of
do
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: