| Package Data | |
|---|---|
| Maintainer Username: | adamkearsley |
| Maintainer Contact: | adam@email.com (Adam Kearsley) |
| Package Create Date: | 2014-05-21 |
| Package Last Update: | 2016-06-27 |
| Language: | PHP |
| License: | Unknown |
| Last Refreshed: | 2025-10-28 03:02:10 |
| Package Statistics | |
|---|---|
| Total Downloads: | 8,484 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 91 |
| Total Watchers: | 5 |
| Total Forks: | 34 |
| Total Open Issues: | 11 |
This is an artisan command to convert your current SQL database schema into a Laravel 4 Migration file. It'll come really handy when you have started a Laravel project without using migrations, or if you're migrating an old app to Laravel.
composer update:"require": {
"adamkearsley/convert-migrations": "dev-master"
}
'Adamkearsley\ConvertMigrations\ConvertMigrationsServiceProvider' to your app/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, magically, you'll have a new migration 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.