This content originally appeared on DEV Community and was authored by Ilya Beliaev
Iโve released an open-source CLI tool that generates Laravel migration files from existing MySQL, PostgreSQL, or MSSQL databases โ including tables, indexes, foreign keys, and sorted by referential dependencies.
๐ง Key features:
- Laravel 5 to 12 support
- Supports MySQL 5.7/8.0, PostgreSQL 15, and MSSQL 2022
- Auto-orders migrations to preserve integrity
- Modular export architecture (definition + mapping layers)
- CI-tested via full GitHub Actions matrix
- Fully extensible and framework-agnostic at its core
โจ Usage Example:
php artisan migrate:regenerate
This will generate Laravel migration files into database/migrations/, ordered and ready for version control.
๐ฆ Install via Composer:
composer require n3xt0r/laravel-migration-generator --dev
๐ GitHub: https://github.com/N3XT0R/laravel-migration-generator
Contributions and feedback are very welcome!
This content originally appeared on DEV Community and was authored by Ilya Beliaev

Ilya Beliaev | Sciencx (2025-06-20T20:57:48+00:00) ๐ Laravel Migration Generator โ Now with PostgreSQL and MSSQL Support. Retrieved from https://www.scien.cx/2025/06/20/%f0%9f%9a%80-laravel-migration-generator-now-with-postgresql-and-mssql-support/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.