EctoSparkles.Migrator (ecto_sparkles v0.4.0)

Copy Markdown View Source

Summary

Functions

create()

create(repo, attempt \\ 0)

migrate(opts \\ [])

Run all migrations for configured repos.

Options:

  • continue_on_error: true - run migrations one by one, logging errors but continuing if one fails.

migrate_repo(repo, opts \\ [])

Run all migrations for the given repo.

Options: see migrate/1

migrated_versions(repo \\ nil)

repos()

rollback(repo \\ nil, step \\ 1)

rollback_all(repo \\ nil)

rollback_to(repo \\ nil, version)

status()

Print the migration status for configured Repos' migrations.

status(repo)