Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow version aliases to be used with execute command #1192

Open
wants to merge 1 commit into
base: 3.3.x
Choose a base branch
from

Conversation

Padam87
Copy link
Contributor

@Padam87 Padam87 commented Aug 16, 2021

Q A
Type improvement
BC Break no
Fixed issues

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.

'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'])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it make sense to get this list from the interface somehow?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@goetas goetas changed the base branch from 3.2.x to 3.3.x August 22, 2021 11:53
@goetas
Copy link
Member

goetas commented Aug 22, 2021

Since this is a new feature, ive changed the base branch to 3.3.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants