Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ritey's avatar

Reverse migrations

I'm just wondering, having picked up another project that doesn't use Laravel that I'd like to move to using Laravel, is there any reason why you'd want to re-create the DB using Laravel migrations and if so, is there an existing package that will reverse engineer a DB into Laravel migration files ready to be run?

Thanks

Dave

0 likes
6 replies
ritey's avatar

Thanks guys, so people use these then, rather than just working with the DB independently? It's interesting because I work a lot with a DBA who really is adverse to this kind of thing so I'm interested to learn the reasonings why it should or shouldn't be adopted from a wider stand point.

Thanks

pmall's avatar

@ritey migrations are cool if you want to keep versions of your database structure. If you don't deal with it there is no real interest.

Please or to participate in this conversation.