$generatorTemplateFiles public property (available since version 2.0.7)
A set of template paths for generating migration code automatically.
The key is the template type, the value is a path or the alias. Supported types are:
-
create_table
: table creating template -
drop_table
: table dropping template -
add_column
: adding new column template -
drop_column
: dropping column template -
create_junction
: create junction template
public array $generatorTemplateFiles = ['create_table' => '@yii/views/createTableMigration.php', 'drop_table' => '@yii/views/dropTableMigration.php', 'add_column' => '@yii/views/addColumnMigration.php', 'drop_column' => '@yii/views/dropColumnMigration.php', 'create_junction' => '@yii/views/createTableMigration.php']
Please login to continue.