shaqman/yii2-web-migration

用于从Web界面使用的迁移。当你没有shell访问权限时很有用。

安装: 0

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 1

类型:yii2-extension

0.1 2018-10-05 03:53 UTC

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