Overview
IntegrationsPricing

blacksmith migrations run

This command runs acknowledged migrations by executing their up logic.

Example:

$ blacksmith migrations run \
  --integration warehouse

1 migration to run for warehouse:
  - 20210809135841.init.up.sql (new)

Blacksmith will run the migrations as shown above. Do you confirm?
Only 'yes' will be accepted to confirm.
> yes

Executing migrations:

  -> Executing 20210809135841.init.up.sql...
     Success!

Required flags

  • --integration [integration]: Integration to run the migrations for. In the following example, the migrations for the integration warehouse will be run.

    Aliases: -i [integration]

    Example:

    $ blacksmith migrations run \
      --integration warehouse

Optional flags

  • --version [time]: Time representation up to which the migrations shall be run. In the following example, every migrations up to the version 20210422135835 (including) will be run, ordered by version from oldest to newest.

    Aliases: -v [time]

    Example:

    $ blacksmith migrations run \
      --integration warehouse \
      --version 20210422135835
Is something missing?

If you notice something we've missed or could be improved on, please follow this link and submit a pull request to the repository. Once we merge it, the changes will be reflected on the website the next time it is deployed.

Thank you for your contributions!