ivanovyordan/yii2-migration 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Create packages for all your modules you want to reuse.
  2. Create a migrations folder for modules that requires migrations.
  3. Add your migrations in the migration directory.

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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-01-24