darkcs / yii2-migrate
Extended migration support
Installs: 137
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-10-08 03:03:05 UTC
README
Console Migration Command with multiple paths/aliases support
Installation
The preferred way to install this extension is through composer.
php composer.phar require --prefer-dist "darkcs/yii2-migrate" "*"
Usage
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', ... ], ], ],