webvimark / module-migrations
此包的最新版本(1.0.0)没有可用的许可信息。
yii 2 gridview的GUI迁移
1.0.0
2015-08-11 06:08 UTC
This package is auto-updated.
Last update: 2024-08-29 04:04:30 UTC
README
提供
- 模块支持
- 修复原始迁移权限问题
- GUI界面
安装
安装此扩展的首选方式是通过composer。
运行以下命令之一:
php composer.phar require --prefer-dist webvimark/module-migrations "*"
或者在您的composer.json
文件的require部分添加以下内容:
"webvimark/module-migrations": "*"
配置
在您的config/web.php中
'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', ], ... ],
在您的config/console.php中
... 'controllerMap'=>[ 'migrate'=>[ 'class'=>'webvimark\modules\migrations\components\MigrateController', ], ], ...
在config/console.php中包含您想要的模块