ivanovyordan/yii2-migration
最新稳定版本:v1.0.1
Composer 安装命令:
composer require ivanovyordan/yii2-migration
包简介
Yii 2 composer module migration helper
关键字:
README 文档
README
This is a small Composer module that helps you reuse your Yii 2 modules.
Installation
Either run the following command in your project root:
php composer.phar require --prefer-dist ivanovyordan/yii2-migration "*"
or add this to the require section of your composer.json file:
"ivanovyordan/yii2-migration": "*"
Setup
Add the following to two rows to the scripts sections in your composer.json file:
"post-install-cmd": "ivanovyordan\\migration\\Migration::migrate",
"post-update-cmd": "ivanovyordan\\migration\\Migration::migrate"
Usage
- Create packages for all your modules you want to reuse.
- Create a
migrationsfolder for modules that requires migrations. - Add your migrations in the
migrationdirectory.
Following these three steps will give you the chance to reuse and redistribute and update your modules without the need to manually do your migrations.
统计信息
- 总下载量: 851
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-24