@@ -68,35 +68,35 @@ defmodule Mix.Tasks.Ecto.Migrate do
68
68
69
69
## Command line options
70
70
71
- * `-r`, `--repo` - the repo to migrate
72
-
73
71
* `--all` - run all pending migrations
74
72
75
- * `--step`, `-n ` - run n number of pending migrations
73
+ * `--log-sql ` - log the underlying sql statements for migrations
76
74
77
- * `--to` - run all migrations up to and including version
75
+ * `--migrations-path` - the path to load the migrations from, defaults to
76
+ `"priv/repo/migrations"`. This option may be given multiple times in which
77
+ case the migrations are loaded from all the given directories and sorted
78
+ as if they were in the same one
78
79
79
- * `--quiet ` - do not log migration commands
80
+ * `--no-compile ` - does not compile applications before migrating
80
81
81
- * `--prefix ` - the prefix to run migrations on
82
+ * `--no-deps-check ` - does not check dependencies before migrating
82
83
83
- * `--pool-size` - the pool size if the repository is started only for the task (defaults to 2)
84
+ * `--pool-size` - the pool size if the repository is started
85
+ only for the task (defaults to 2)
84
86
85
- * `--log-sql ` - log the raw sql migrations are running
87
+ * `--prefix ` - the prefix to run migrations on
86
88
87
- * `--strict-version-order ` - abort when applying a migration with old timestamp
89
+ * `--quiet ` - do not log migration commands
88
90
89
- * `--no-compile ` - does not compile applications before migrating
91
+ * `-r`, `--repo ` - the repo to migrate
90
92
91
- * `--no-deps-check ` - does not check dependencies before migrating
93
+ * `--step`, `-n ` - run n number of pending migrations
92
94
93
- * `--migrations-path` - the path to load the migrations from, defaults to
94
- `"priv/repo/migrations"`. This option may be given multiple times in which case the migrations
95
- are loaded from all the given directories and sorted as if they were in the same one.
95
+ * `--strict-version-order` - abort when applying a migration with old
96
+ timestamp (otherwise it emits a warning)
97
+
98
+ * `--to` - run all migrations up to and including version
96
99
97
- Note, if you have migrations paths e.g. `a/` and `b/`, and run
98
- `mix ecto.migrate --migrations-path a/`, the latest migrations from `a/` will be run (even
99
- if `b/` contains the overall latest migrations.)
100
100
"""
101
101
102
102
@ impl true
0 commit comments