A
A
Alexander Sharihin2016-02-12 12:07:26
Yii
Alexander Sharihin, 2016-02-12 12:07:26

Is it possible to automatically merge migrations in Yii2?

Good day!
Is it possible to automatically merge migrations in Yii2?
Or generate a single migration over an existing database (structure only)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Sharihin, 2016-02-16
@Pinsky

In principle, from the existing base, you can get a combined migration with the help of such joy.
www.yiiframework.com/extension/yii2-migration-utility

D
Dmitry Donkovtsev, 2016-02-12
@Demetriy

Probably, as an option, you can dump the database structure to a file and import this file in the new migration, deleting the old migrations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question