Skip to content

Commit

Permalink
Merge pull request #892 from doctrine/fqcn-hint
Browse files Browse the repository at this point in the history
Version is not a number but a FQCN
  • Loading branch information
goetas authored Dec 8, 2019
2 parents 3e4b0c8 + cf9ba4d commit 12b940e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final class NameIsReserved extends InvalidArgumentException implements FinderExc
public static function new(string $version) : self
{
return new self(sprintf(
'Cannot load a migrations with the name "%s" because it is a number reserved by Doctrine Migrations.'
'Cannot load a migrations with the name "%s" because it is reserved by Doctrine Migrations.'
. PHP_EOL
. 'It is used to revert all migrations including the first one.',
$version
Expand Down
10 changes: 5 additions & 5 deletions lib/Doctrine/Migrations/Tools/Console/Command/ExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,23 @@ protected function configure() : void
->setHelp(<<<EOT
The <info>%command.name%</info> command executes a single migration version up or down manually:
<info>%command.full_name% YYYYMMDDHHMMSS</info>
<info>%command.full_name% FQCN</info>
If no <comment>--up</comment> or <comment>--down</comment> option is specified it defaults to up:
<info>%command.full_name% YYYYMMDDHHMMSS --down</info>
<info>%command.full_name% FQCN --down</info>
You can also execute the migration as a <comment>--dry-run</comment>:
<info>%command.full_name% YYYYMMDDHHMMSS --dry-run</info>
<info>%command.full_name% FQCN --dry-run</info>
You can output the would be executed SQL statements to a file with <comment>--write-sql</comment>:
<info>%command.full_name% YYYYMMDDHHMMSS --write-sql</info>
<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:
<info>%command.full_name% YYYYMMDDHHMMSS --no-interaction</info>
<info>%command.full_name% FQCN --no-interaction</info>
EOT
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ protected function configure() : void
{
$this
->setAliases(['latest'])
->setDescription('Outputs the latest version number');
->setDescription('Outputs the latest version');

parent::configure();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected function configure() : void
->addArgument(
'version',
InputArgument::OPTIONAL,
'The version number (YYYYMMDDHHMMSS) or alias (first, prev, next, latest) to migrate to.',
'The version FQCN or alias (first, prev, next, latest) to migrate to.',
'latest'
)
->addOption(
Expand Down Expand Up @@ -80,7 +80,7 @@ protected function configure() : void
You can optionally manually specify the version you wish to migrate to:
<info>%command.full_name% YYYYMMDDHHMMSS</info>
<info>%command.full_name% FQCN</info>
You can specify the version you wish to migrate to using an alias:
Expand All @@ -93,11 +93,11 @@ protected function configure() : void
You can also execute the migration as a <comment>--dry-run</comment>:
<info>%command.full_name% YYYYMMDDHHMMSS --dry-run</info>
<info>%command.full_name% FQCN --dry-run</info>
You can output the would be executed SQL statements to a file with <comment>--write-sql</comment>:
<info>%command.full_name% YYYYMMDDHHMMSS --write-sql</info>
<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:
Expand Down

0 comments on commit 12b940e

Please sign in to comment.