Skip to content

Automatically writes the create tables for migrations or create tables in general. Uses MySQL

License

Notifications You must be signed in to change notification settings

fedemotta/yii2-migration-utility

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Migration Utility

Major update Now supports table indexes, table options for each database type and table data.

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

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

Supports

  • MySQL
  • MsSQL
  • PgSQL
  • SQLite

It automatically writes out all:

  • tables
  • columns
  • column types
  • column defaults
  • primary 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" "dev-master"

or add

"c006/yii2-migration-utility": "dev-master"

to the require section of your composer.json file.

Required

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

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

The tables must already exist in website schema.

Demo

Demo: http://demo.c006.us

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.

About

Automatically writes the create tables for migrations or create tables in general. Uses MySQL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 83.1%
  • JavaScript 13.1%
  • CSS 3.8%