Repository navigation
Conversation
f2c0394 to
5b0b076
Compare
| 'The versions to execute.', | ||
| sprintf( | ||
| 'The versions to execute. Use the FQCN of the migration, or the following reserved aliases: %s', | ||
| implode(', ', ['first', 'current', 'prev', 'next', 'latest']) |
There was a problem hiding this comment.
does it make sense to get this list from the interface somehow?
There was a problem hiding this comment.
A getSupportedAliases method would be easy to impletement, but using it could be trouble, because of the verbatim return, and the current-1 formats.
Should I go for it? If so, should it be enforced with a supports method, or just a simple listing?
|
Since this is a new feature, ive changed the base branch to |
|
This pull request is labelled Enhancement, but it targets Changes labelled Enhancement should target the next minor branch, To retarget it, choose Edit next to the title and select the appropriate base branch, |
Summary
This PR plugs in the alias resolver to the execute command in order to simplify executing a migration.
In practice, this would improve DX, because the last migration could be easily
--down-ed, when spotting a mistake.