dn23rus / yii2-extended-migration
Yii2 扩展迁移
v1.0.3
2015-12-14 20:43 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-09-18 17:32:39 UTC
README
Yii2 扩展迁移扩展为迁移提供了额外的功能。
##安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一:
php composer.phar require --prefer-dist dn23rus/yii2-extended-migration "1.*"
或者
"dn23rus/yii2-extended-migration": "1.*"
将以下内容添加到您的 composer.json
文件的 require 部分中。
##使用
安装扩展后,将此配置添加到您的 configs/main.php
文件中。
'controllerMap' => [ // ... 'migrate' => [ 'class' => yii\console\controllers\MigrateController::class, 'templateFile' => '@vendor/dn23rus/yii2-extended-migration/views/migration.php', ], // ... ],