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

Migration method "run()", pass revision number #71

Open
SiriusED opened this issue Apr 19, 2018 · 0 comments
Open

Migration method "run()", pass revision number #71

SiriusED opened this issue Apr 19, 2018 · 0 comments

Comments

@SiriusED
Copy link

SiriusED commented Apr 19, 2018

Hi, I use mongo-migrate inside of grunt task like this:

let mm = require('mongodb-migrate')

mm.setDbConfig(JSON.stringify(mmConfig));
mm.run("up");

Can I pass revision number to this method like?

mm.setDbConfig(JSON.stringify(mmConfig));
mm.run("up", 10);

Or which other way can I get exect result as using this command from console?

node ./node_modules/mongodb-migrate -runmm down 10

What does migrationEnd mean function runMongoMigrate(direction, migrationEnd, next)?

Not relevant, have found mistake it was on my side.

@SiriusED SiriusED changed the title Run migration method, pass revision number Migration method "run()", pass revision number Apr 19, 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

No branches or pull requests

1 participant