phinx icon indicating copy to clipboard operation
phinx copied to clipboard

seed template

Open m1kesk opened this issue 6 years ago • 2 comments

For migration we can define custom template via config e.g.

    'templates' => [
        'file' => __DIR__ . '/src/Database/Migration/MyCustomTemplate.txt.dist'
    ],

I searched documentation and for seeders we use only default template from https://github.com/cakephp/phinx/blob/master/src/Phinx/Seed/Seed.template.php.dist

Question How can we define custom template for seeder in config?

This is probably feature-request

Thank you

m1kesk avatar Feb 28 '19 16:02 m1kesk

I'd like to be able to do this from the CLI also.

treehousetim avatar May 20 '19 18:05 treehousetim

One more on the line. In our case, it's because code style differs and we don't use auto-fixers, just lint warnings - thus, any newly generated file will need manual fixing before submission.

Bonus: didn't find in the docs there was a config for templates, just aliases. Quite useful.

igorsantos07 avatar Dec 03 '20 05:12 igorsantos07