I
I
Igogo20122013-11-29 16:38:39
MySQL
Igogo2012, 2013-11-29 16:38:39

Is there some out of the box tool to migrate existing mysql to migration files for Yii Framework?

Is there some out of the box tool to migrate existing mysql to migration files for Yii Framework?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vit, 2013-11-29
@fornit1917

I have not seen such ready-made tools, IMHO you can write it yourself quickly enough.
But I still don't quite understand why. Make a dump, let it lie with you. In the future, make all changes through migrations. It will be necessary to deploy when the database - roll the dump, then the migration. We did just that on a project that has been living without migrations for a long time, everything is very easy and simple, no problems. Moreover - now a huge number of migrations have already accumulated, I'm thinking about how to again make actual dumps of the latest version of the database and bang the existing migrations at the moment.

P
p4s8x, 2013-11-30
@p4s8x

You can upload the dump along with the migration and write a 3-line migration script that will execute the entire dump.

A
Alexander Litvinov, 2014-02-03
@Sander_Li

May fit vrtm.ru/archives/8

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question