loopback-component-migrate
loopback-component-migrate copied to clipboard
How to run migration from cli
How can I run migrations from a command like npm run migrate
?
also where to put Migrate.migrate('up', function(err) {});
??
Same questions. The doc is very limited about how to use it.
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.