phinx icon indicating copy to clipboard operation
phinx copied to clipboard

No documentation for templates field in configuration file

Open mcapodacqua opened this issue 10 years ago • 1 comments

From docs:

Open the new migration file in your text editor to add your database transformations. Phinx creates migration files using the path specified in your phinx.yml file. Please see the Configuration chapter for more information.

In configuration chapter there is no reference to the templates.file field, this is the documentation about "templates":

Aliases Template creation class names can be aliased and used with the --class command line option for the Create Command. The aliased classes will still be required to implement the Phinx\Migration\CreationInterface interface.

I had to check the code to realized that I can change the template of every new migration by adding this in my config file:

templates:
    file: %%PHINX_CONFIG_DIR%%/templates/my.template

mcapodacqua avatar Oct 18 '16 16:10 mcapodacqua

Are you able to provide a pull request with your suggested changes to docs?

dereuromark avatar Oct 08 '17 17:10 dereuromark