dev-master
9999999-devArtisan command to convert your current SQL database schema into a Laravel 4 Migration file.
The Requires
- php >=5.5.0
- illuminate/support 5.*
- illuminate/console 5.*
by Adam Kearsley
Wallogit.com
2017 © Pedro Peláez
Artisan command to convert your current SQL database schema into a Laravel 4 Migration file.
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., (*1)
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., (*2)
Ignoring Tables, (*3)
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"., (*4)
Credits go to "bruceoutdoors" original class., (*5)
Artisan command to convert your current SQL database schema into a Laravel 4 Migration file.