Answer the question
In order to leave comments, you need to log in
What tool will allow you to create migration files from the mysql database?
in a project under 1000 migrations. and the tables themselves are about 70. I would like each table to have one migration (for now). How would you find a tool that would allow you to create migration files for each table from the contents of the database so that you can then bang old migrations and use new ones where all fields and keys are added through one file.
We do not need to do any kickbacks yet. So we can afford it.
Answer the question
In order to leave comments, you need to log in
Have you read the documentation?
https://laravel.com/docs/8.x/migrations#squashing-...
Just dump the database and put it in the project, it is not necessary to put it in the migration.
Well, or a dump from the migration can then simply be run through DB::unprepared.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question