-
Notifications
You must be signed in to change notification settings - Fork 113
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
bake migration_diff now supports --source for multiple database configs #618
Conversation
…'plugin' and 'source' option into an array
… uses assertCount instead of assertEquals
… fully qualified name for $args param
$path = ROOT . DS . $this->pathFragment; | ||
$path = ROOT . DS . $this->pathFragment . DS . $args->getOption('source') . DS; | ||
if ($this->plugin) { | ||
$path = $this->_pluginPath($this->plugin) . $this->pathFragment; | ||
$path = $this->_pluginPath($this->plugin) . $this->pathFragment . DS . $args->getOption('source') . DS; |
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.
$args->getOption('source')
could be extracted into an intermediate variable to improve readability and reduce redunant calls.
…tion('source') . DS' into an intermediate variable
Is there anything blocking this? |
Released in Migrations 3.9, thanks! |
#618 changed how the path for the baked files is being built.
@Rakasch You are using |
@ndm2 |
Implemented a souce option for bake migration_diff. migration_diff now supports multiple target folders for the generated migration.
This is especially what was requested in issue #608 and it also bothered our company.
This has now been built on top of the 3.x branch (because we need it theres) but should probably be merged to 4.x as well.
We added tests for the option and also executed CS before opening the PR, both are running without errors.
We appreciate your feedback if there is more to change to be compliant with the contribution guidelines.