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

seed template #1507

Open
m1kesk opened this issue Feb 28, 2019 · 2 comments
Open

seed template #1507

m1kesk opened this issue Feb 28, 2019 · 2 comments

Comments

@m1kesk
Copy link

m1kesk commented Feb 28, 2019

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

@treehousetim
Copy link

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

@igorsantos07
Copy link
Contributor

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.

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

No branches or pull requests

3 participants