-
Notifications
You must be signed in to change notification settings - Fork 892
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 specifying template style for create command #2013
Conversation
Codecov failing seems like a bug on their end as all lines in this changeset are covered by tests. |
Co-authored-by: Mark Scherer <dereuromark@users.noreply.github.com>
…o feature-template-style
Any news on when this will have a release tag? |
Any other breaking changes we want to include and ship? |
Is this documented? I can't find any reference to If I run
|
@@ -57,6 +58,8 @@ protected function configure(): void | |||
|
|||
// Allow the migration path to be chosen non-interactively. | |||
$this->addOption('path', null, InputOption::VALUE_REQUIRED, 'Specify the path in which to create this migration'); | |||
|
|||
$this->addOption('style', null, InputOption::VALUE_REQUIRED, 'Specify the style of migration to create'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This creates a BC issue for https://github.com/cakephp/migrations/actions/runs/3583067226/jobs/6028049748 it seems for new release of supporting 0.13
Could we just default to one somewhere maybe? Not having it required?
This PR adds a new config option and runtime flag for allowing to specify the template style you want to use, either
change
orup_down
, with the former being the default value. This can be used by people who want the older style ofup
anddown
functions over thechange
function.This PR is against
0.next
due to breaking changes of:Create
console class.Closes #2009.