loopback-component-migrate icon indicating copy to clipboard operation
loopback-component-migrate copied to clipboard

How to run migration from cli

Open gijo-varghese opened this issue 6 years ago • 2 comments

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

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

gijo-varghese avatar Sep 02 '18 17:09 gijo-varghese

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

prionkor avatar Sep 20 '18 06:09 prionkor

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.

Akeri avatar Dec 31 '18 19:12 Akeri