Answer the question
In order to leave comments, you need to log in
How to create a template for migrations in Yii 2?
How to create a template for migrations in Yii 2?
Answer the question
In order to leave comments, you need to log in
Copy `framework/views/migration.php` to yourself. For example, in `views/migration.php`.
Specify in the console config:
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'templateFile' => '@app/views/migration.php',
],
],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question