Answer the question
In order to leave comments, you need to log in
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
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.
You can upload the dump along with the migration and write a 3-line migration script that will execute the entire dump.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question