Skip to content

How to run migration from cli #38

Open

Description

@gijo-varghese

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

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

Activity

  1. prionkor commented on Sep 20, 2018

    @prionkor

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

  2. Akeri commented on Dec 31, 2018

    @Akeri

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions