Console Migration Command with multiple paths/aliases support
The preferred way to install this extension is through composer.
php composer.phar require --prefer-dist "darkcs/yii2-migrate" "*"
Add a new controller map in controllerMap
section of your application's configuration file, for example:
'controllerMap' => [
'migrate' => [
'class' => 'darkcs\migrate\controllers\MigrateController',
'migrationPaths' => [
'@modules/news/migrations',
'@modules/page/migrations',
...
],
],
],
No stable releases.
Comments