mix mnesia.migrate (Ecto3 Mnesia v0.3.0) View Source

Runs the pending migrations for the given repository.

The repositories to migrate are the ones specified under the :ecto_repos option in the current app configuration. However, if the -r option is given, it replaces the :ecto_repos config.

Since Ecto tasks can only be executed once, if you need to migrate multiple repositories, set :ecto_repos accordingly or pass the -r flag multiple times.

If a repository has not yet been started, one will be started outside your application supervision tree and shutdown afterwards.

Command line options

  • -r, --repo - the repo to migrate