Skip to content

Commit

Permalink
Merge pull request #3268 from flownative/migrate-help
Browse files Browse the repository at this point in the history
TASK: Improve help text for doctrine:migrate
  • Loading branch information
robertlemke authored Mar 14, 2024
2 parents 73c10e5 + 7a0ffc8 commit 47244cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Neos.Flow/Classes/Command/DoctrineCommandController.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public function migrationStatusCommand(bool $showMigrations = false): void
* Adjusts the database structure by applying the pending
* migrations provided by currently active packages.
*
* @param string $version The version to migrate to
* @param string $version The version to migrate to. Can be either a version number ("20231211133500"), a full migration class name ("Neos\Flow\Persistence\Doctrine\Migrations\Version20231211133500"), "previous", "next" or "latest" (default)
* @param string|null $output A file to write SQL to, instead of executing it
* @param boolean $dryRun Whether to do a dry run or not
* @param boolean $quiet If set, only the executed migration versions will be output, one per line
Expand Down Expand Up @@ -544,6 +544,9 @@ protected function isDatabaseConfigured(): bool
*/
private function normalizeVersion(string $version): string
{
if ($version === 'previous') {
return 'prev';
}
if (!is_numeric($version)) {
return $version;
}
Expand Down

0 comments on commit 47244cb

Please sign in to comment.