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

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

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

c006/yii2-migration-utility

最新稳定版本:v2.0.4

Composer 安装命令:

composer require c006/yii2-migration-utility

包简介

Automatically writes the create tables for migrations or create tables in general

README 文档

README

Current Version - v2.0.4 2020-06

  • Add JqueryAsset to DefaultController

This is a utility that writes the create table statement for migrations. The table(s), indexes, foreign keys must already exist.

Foreign Key - uses link table and numbering, table / columns had potential to be too long

Supports

  • MySQL
  • MsSQL
  • PgSQL
  • SQLite

It automatically writes out all:

  • tables
  • columns
  • column types
  • column defaults
  • primary keys
  • composite keys
  • foreign key
  • indexes
  • Table data

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-source "c006/yii2-migration-utility" ">=2.0.4"

or add

"c006/yii2-migration-utility": ">=2.0.4"

to the require section of your composer.json file.

Required

Update either config/web.php (basic) or common/config/main.php (advanced)

   'modules' => [
       'utility' => [
          'class' => 'c006\utility\migration\Module',
       ],
   ],

The tables must already exist in website schema.

Screen Capture

Image: https://drive.google.com/file/d/18TwwvvN4r9u7zQ537i5LsP3XQe6aizMp/view?usp=sharing

Usage

###http://[Your_Domain]/utility###

or

###http://[Your_Domain]/?r=/utility###

Updates

  • Table options per database type
  • Table indexes
  • Table data

Contributors

Comments / Suggestions

Please provide any helpful feedback or requests.

Thanks.

统计信息

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

GitHub 信息

  • Stars: 63
  • Watchers: 10
  • Forks: 35
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-06-08