shaqman / yii2-web-migration
用于从Web界面使用的迁移。当你没有shell访问权限时很有用。
0.1
2018-10-05 03:53 UTC
Requires
- yiisoft/yii2: ~2.0.13
This package is auto-updated.
Last update: 2024-09-05 18:28:35 UTC
README
用于从Web界面使用的迁移。当你没有shell访问权限时很有用。
安装
安装此扩展的首选方式是通过composer。
运行以下命令之一
php composer.phar require --prefer-dist shaqman/yii2-web-migration
或添加
"shaqman/yii2-web-migration": "*"
使用方法
模块配置
配置yii2-web-migration
模块。
'modules' => [ 'web-migration' => [ // the module class 'class' => 'shaqman\web\migration\Module', ], // your other modules ]
迁移
像往常一样创建你的迁移,然后你可以通过触发你的模块名称来应用迁移。
https:///index.php?r=web-migration/default&action=up
https:///index.php?r=web-migration/default&action=down