Skip to content

Commit

Permalink
alias resolver is able to resolve the migration '0'
Browse files Browse the repository at this point in the history
  • Loading branch information
goetas committed May 23, 2020
1 parent 6005969 commit 5712f4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Doctrine/Migrations/Version/DefaultAliasResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public function resolveVersionAlias(string $alias) : Version

switch ($alias) {
case self::ALIAS_FIRST:
case '0':
return new Version('0');
case self::ALIAS_CURRENT:
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public function getAliases() : array
['current-1', 'A'],
['current+1', 'C'],
['B', 'B'],
['0', '0'],
['X', null, UnknownMigrationVersion::class],
];
}
Expand Down

0 comments on commit 5712f4c

Please sign in to comment.