Skip to content

Commit

Permalink
chore: Add missing option in MigrateCommand help section
Browse files Browse the repository at this point in the history
Add missing `--allow-no-migration` in MigrateCommand help section and standardise output to be consistent with historic format
  • Loading branch information
llupa committed Jan 19, 2024
1 parent 8cbb55c commit e50b790
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/Doctrine/Migrations/Tools/Console/Command/MigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected function configure(): void
<info>%command.full_name% prev</info>
<info>These alias are defined: first, latest, prev, current and next</info>
You can specify the version you wish to migrate to using an number against the current version:
You can specify the version you wish to migrate to using a number against the current version:
<info>%command.full_name% current+3</info>
Expand All @@ -112,15 +112,21 @@ protected function configure(): void
<info>%command.full_name% FQCN --write-sql</info>
Or you can also execute the migration without a warning message which you need to interact with:
Or you can also execute the migration without a warning message which you need to interact with <comment>--no-interaction</comment>:
<info>%command.full_name% --no-interaction</info>
You can also time all the different queries if you wanna know which one is taking so long:
You can also time all the different queries if you want to know which one is taking so long with <comment>--query-time</comment>:
<info>%command.full_name% --query-time</info>
Use the --all-or-nothing option to wrap the entire migration in a transaction.
You can skip throwing an exception if no migration is available with <comment>--allow-no-migration</comment>:
<info>%command.full_name% --allow-no-migration</info>
You can wrap the entire migration in a transaction with <comment>--all-or-nothing</comment>:
<info>%command.full_name% --all-or-nothing</info>

EOT);

Expand Down

0 comments on commit e50b790

Please sign in to comment.