wilwade/gii-migration 问题修复 & 功能扩展

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

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

wilwade/gii-migration

最新稳定版本:v1.0.2

Composer 安装命令:

composer require wilwade/gii-migration

包简介

Yii2 Gii Migration Generator

README 文档

README

A Yii2 Gii Code Generator to create basic new table migrations easily.

Installation

The preferred way to install this extension is through composer.

"wilwade/gii-migration": "dev-master"

Usage

//if your gii modules configuration looks like below:
    $config['modules']['gii'] = 'yii\gii\Module';
// Replace this line
//Add this into common/config/main-local.php
    $config['modules']['gii'] = [
		'class' => 'yii\gii\Module',
		'generators' => [
			'giiMigration' => [
				'class' => 'wilwade\giiMigration\generators\migration\Generator',
				//Optional:
				'defaultColumns' => [],
				'baseClass' => 'yii\db\Migration',
			],
		],
    ],

Optional Config

  • defaultColumns: Used to have an array of columns that will be added if the include default columns checkbox is checked
  • baseClass: Used if you want to extend something besides the default Migration class

统计信息

  • 总下载量: 13.85k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-09