Gui migrations for yii 2 gridview
Provide: * modules support * fix original migrations permission issue * GUI interface, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist webvimark/module-migrations "*"
or add, (*4)
"webvimark/module-migrations": "*"
to the require section of your composer.json
file., (*5)
In your config/web.php, (*6)
'modules'=>[ ... 'migrations'=>[ 'class'=>'webvimark\modules\migrations\MigrationModule', 'executableYii' => (YII_ENV == 'prod') ? '@app/yii_production' : '@app/yii', // 'layout'=>'//back', // If you want to be able to run migrations from specific url: // http://site.com/migrations/web-execute/index?key=THIS_KEY // 'webExecuteEnabled'=>true, // 'webExecuteKey'=>'bla-bla-key', ], ... ],
In you config/console.php, (*7)
... 'controllerMap'=>[ 'migrate'=>[ 'class'=>'webvimark\modules\migrations\components\MigrateController', ], ], ...
Include your desired modules in config/console.php, (*8)
Go to http://site.com/migrations/default/index, (*9)