feat(cli): add --no-execution option to the "up" command
...which can be used to log manually run migrations as successful or for baselining a database.
This commit is contained in:
parent
e71c318ea5
commit
f515c8a854
7 changed files with 138 additions and 18 deletions
|
|
@ -42,6 +42,8 @@ Options:
|
|||
--dry List the pending migrations that would be run without actually running them
|
||||
--color Force color output (this option is passed to the reporter)
|
||||
--no-color Disable color output (this option is passed to the reporter)
|
||||
--no-execution Mark the migrations as executed and successful without actually running them,
|
||||
which is useful if you want to mark migrations as successful after running them manually
|
||||
|
||||
Examples:
|
||||
|
||||
|
|
@ -51,6 +53,7 @@ Examples:
|
|||
emigrate up -d ./migrations -s mysql --import dotenv/config
|
||||
emigrate up --limit 1
|
||||
emigrate up --to 20231122120529381_some_migration_file.js
|
||||
emigrate up --to 20231122120529381_some_migration_file.js --no-execution
|
||||
```
|
||||
|
||||
### Examples
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue