Yii Framework 2.0 Migrating with an Existing Database

I know the concept of migration Yii framework 2.0. Let's say we create the migration source code and run the command, the database tables will be created based on the source code. Is it possible to create migration source code based on an existing database? With source code, I do not mean the model, controller, or CRUD classes, but I mean the migration source code. This is a kind of reverser.

+4
source share
3 answers

The following yii2 extension creates migration scripts from an existing MySQL, MSSQL, PgSQL, or SQLite database:

www.yiiframework.com/extension/yii2-migration-utility/

: www.github.com/c006/yii2-migration-utility

+8

, Yii 2. .

- RDMS. Github ( , - ), , .

0

, mysqldump sql, , , .

0

Source: https://habr.com/ru/post/1570895/


All Articles