mix recall.migrate (Recall v0.1.0)

Copy Markdown View Source

Runs pending migrations for the given Recall-backed repository.

The stock mix ecto.migrate tracks applied versions with a string-source schema_migrations query that this adapter refuses to serve; this task is the Recall equivalent, doing version bookkeeping through a schema-backed migrations table (see Recall.Migrator). It otherwise behaves like ecto.migrate.

mix recall.migrate
mix recall.migrate -r MyApp.Repo --step 2

Options

  • -r, --repo — the repo to migrate (defaults to the app's configured repos)
  • --all — run all pending migrations (the default)
  • --step — run N pending migrations
  • --to — run up to and including a target version
  • --migrations-path — a migrations directory (may be given more than once)
  • --log-level — the Logger level for migration logs (default info)