migrations
migrations copied to clipboard
Custom Migration Template (create.php.template) Path/Name?
After reviewing the CakePHP migration plugin source, it appears, unlike when using Phinx directly, it's not possible without modifying the migrations plug-in source, which defeats the purpose of using Composer, to specify a custom migration template file (i.e. create.php.template) path/name.
The template path appears effectively hard-coded in ConfigurationTrait.php (cakephp\migrations\src\ConfigurationTrait.php).
Am I missing something or is there a means of doing this through app configuration?
You mean
$templatePath = __DIR__ . DS . 'Template' . DS;
?
I agree that having a templatePath() wrapper that also allows a configured alternative would make sense.
Do you want to make a PR here?
Yes, I'll work on a PR.