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

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

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

yiimaker/yii2-gii-migration

Composer 安装命令:

composer require yiimaker/yii2-gii-migration

包简介

Yii2 Gii Migration

README 文档

README

Migration generator for Gii


Total Downloads Latest Stable Version Latest Unstable Version

Installation

Install package

Run command

composer require yiimaker/yii2-gii-migration

or add

"yiimaker/yii2-gii-migration": "~1.0"

to the require section of your composer.json.

Usage

Configure generator in Gii module configuration

'modules' => [
    'gii' => [
        // ...
        'generators' => [
            // ...
            'migration' => [
                'class' => \ymaker\gii\migration\Generator::class,
            ],
        ],
    ],
],

Fields

Field Type Default Description
$migrationPath string '@console/migrations' the path to the folder in which the migration file will be generated
$db string db connection to a database
$fields array none table fields
$foreignKeys array none table foreign keys
$useTablePrefix bool true use table prefix
$tableName string none table name
$migrationName string none migration name
$translationPostfix string '_translation' postfix for translation table name
$translationRefColumn string 'id' name for model column
$translationTableColumn string 'model_id' name for translation model column
$translationLanguageTableName string 'language' language table name
$translationLanguageColumnRefName string code language column name in language table
$translationLanguageColumnName string 'language' language column name for translation table
$translationLanguageColumnType string string language column type
$translationLanguageColumnParam string null language column param

License

License

This project is released under the terms of the BSD-3-Clause license.

Copyright (c) 2017, Yii Maker

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-01-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固