yacto v2.0.0-pre.14 Yacto.Migration.Migrator View Source
Link to this section Summary
Functions
Runs an up migration on the given repository.
Link to this section Functions
Link to this function
migrated_versions(repo, app, schema)
View Sourcemigrated_versions(Ecto.Repo.t(), atom(), module()) :: [integer()]
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 ofLogger.level/0
values or a boolean.:log_sql
- the level to use for logging of SQL instructions. Defaults tofalse
. Can be any ofLogger.level/0
values or a boolean.:prefix
- the prefix to run the migrations on:dynamic_repo
- the name of the Repo supervisor process. SeeEcto.Repo.put_dynamic_repo/1
.:strict_version_order
- abort when applying a migration with old timestamp