You could attach the databases to a vanilla Laravel install and then run the Schema:dump command
https://laravel.com/docs/8.x/migrations#squashing-migrations
I have the job of migrating an old legacy php + angular app to laravel. So far, I have just copied the databases of the legacy app (it has one main database and one for each tenant/user) and used that to rebuild the application. I know this is definitely not the best practice but when I started 9 months ago I had no clue how to do it better.
I have reached a point where I am really annoyed with having no tests at all. Yeah, none. I want to start making seeders and testing different parts of the application but I thought it would definitely be best to start with writing migrations files that mirror the structure of the tables in the databases of the old app (and here I would also add indices cause it doesnt have them yet...). What is the best way to go about this? Are there automatic tools that can do this?
You could attach the databases to a vanilla Laravel install and then run the Schema:dump command
https://laravel.com/docs/8.x/migrations#squashing-migrations
Please or to participate in this conversation.