phuongdev89/yii2-migration-generator

gii tool for mass migration generation by Schema

Installs: 131

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 29

Type:yii2-extension

dev-master 2023-01-10 15:25 UTC

This package is auto-updated.

Last update: 2024-04-26 11:35:39 UTC


README

========== Using insolita/yii2-migration-generator is better:

https://github.com/Insolita/yii2-migrik

Migration Generator From Mysql database (beta)

generate migration files (not dumps!) with indexes, and foreign keys, for one table, comma separated list of tables, by part of table name, for all tables by *

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require-dev --prefer-dist phuongdev89/yii2-migration-generator "*"

or add

"phuongdev89/yii2-migration-generator": "*"

to the require-dev section of your composer.json file.

Usage (MYSQL ONLY): Just install, go to gii and use

Known Issues:

  • sometimes not correct work gii preview - it`s features gii preview, and naming of migration files which named with timestamp data