yacto v2.0.0-pre.14 Yacto.Migration.Migrator View Source

Link to this section Summary

Link to this section Functions

Link to this function

migrated_versions(repo, app, schema)

View Source
migrated_versions(Ecto.Repo.t(), atom(), module()) :: [integer()]
Link to this function

up(app, repo, schemas, migrations, opts \\ [])

View Source

Runs an up migration on the given repository.

Options

  • :log - the level to use for logging of migration instructions. Defaults to :info. Can be any of Logger.level/0 values or a boolean.
  • :log_sql - the level to use for logging of SQL instructions. Defaults to false. Can be any of Logger.level/0 values or a boolean.
  • :prefix - the prefix to run the migrations on
  • :dynamic_repo - the name of the Repo supervisor process. See Ecto.Repo.put_dynamic_repo/1.
  • :strict_version_order - abort when applying a migration with old timestamp