How to convert Laravel migrations to raw SQL scripts?

Developers of my team are really used to the power of Laravel migrations, they are working great on local machines and our dev servers.
But customer’s database admin will not accept Laravel migrations. He asks for raw SQL scripts for each new version of our application.

Is there any tool or programming technique to capture the output from Laravel migrations to up/down SQL scripts?

It would be perfect if we could integrate SQL script generation in our CI system (TeamCity) when creating production builds.

By the way, we will be using Laravel 5 and PostgreSQL for this project.


Source: laravel

Leave a Reply