| Package Data | |
|---|---|
| Maintainer Username: | d3vr |
| Maintainer Contact: | d3vr@mitidji.com (Fayçal Mitidji) |
| Package Create Date: | 2017-03-13 |
| Package Last Update: | 2017-03-15 |
| Home Page: | |
| Language: | PHP |
| License: | Unknown |
| Last Refreshed: | 2025-10-22 15:14:22 |
| Package Statistics | |
|---|---|
| Total Downloads: | 108 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 3 |
| Total Watchers: | 1 |
| Total Forks: | 1 |
| Total Open Issues: | 0 |
This is a fork of adamkearsley/laravel-convert-migrations:
This is an artisan command to convert your current SQL database schema into Laravel 5.4.* Migration files (one for each table). It'll come really handy when you have started a Laravel project without using migrations, if you're migrating an old app to Laravel, or maybe you used a database designer to generate SQL.
composer update:"require": {
"d3vr/db2migrations": "dev-master"
}
d3vr\DB2Migrations\DB2MigrationsServiceProvider::class to your config/app.php file, inside the providers array.Now it's as easy as running php artisan convert:migrations myDatabaseName. Wait a few seconds and, automagically, you'll have the new migration files in app/database/migrations.
Ignoring Tables
You can even ignore tables from the migration if you need to. Just use the ignore option and separate table names with a comma: php artisan convert:migrations --ignore="table1, table2".
Credits go to "bruceoutdoors" original class.