Closed ultrasaurus closed 8 years ago
@ultrasaurus Thanks for the detailed test case!
This is a bug in db-migrate's promise handling, and possibly Bluebird being a bit overzealous in trying to catch Promise related errors.
You can safely ignore this warning for now, and I've submitted a PR (db-migrate/node-db-migrate#367) to db-migrate to fix the promise handling in their code.
thanks for the quick response @leedm777 !
I know your README reports that this supports Sails 0.10.x, but I've isolated a warning to this package (I think), so I figured I would report it for your consideration.
grunt db:migrate:up
reports a warning about promises...I've reproduced this in a very tiny Sails app and verified that if I use plain old
db-migrate up
from the node module (without sails-db-migrate) that I don't get the warningIsolated Test Case
You can clone the simple app here -- The master branch just has the warning, the no-warn branch includes a
database.json
required to run the vanilla db-migrateSteps:
in
config/migrations.js
: