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

How to run migration from cli #38

Open
gijo-varghese opened this issue Sep 2, 2018 · 2 comments
Open

How to run migration from cli #38

gijo-varghese opened this issue Sep 2, 2018 · 2 comments

Comments

@gijo-varghese
Copy link

How can I run migrations from a command like npm run migrate?

also where to put Migrate.migrate('up', function(err) {});??

@prionkor
Copy link

Same questions. The doc is very limited about how to use it.

@Akeri
Copy link

Akeri commented Dec 31, 2018

You can go this way:
node node_modules/loopback-component-migrate/bin/cli migrate to <filename>
or even without filename argument to go until the last migration.

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

3 participants