A
A
Albert Tobacco2015-04-23 17:40:27
Yii
Albert Tobacco, 2015-04-23 17:40:27

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

1 answer(s)
A
Alexander Makarov, 2015-04-23
@bighoc

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 question

Ask a Question

731 491 924 answers to any question