Package Data | |
---|---|
Maintainer Username: | daavelar |
Maintainer Contact: | diegoarmando2011@gmail.com (Diego Armando Avelar) |
Package Create Date: | 2014-12-12 |
Package Last Update: | 2021-06-30 |
Home Page: | |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-12-19 03:03:51 |
Package Statistics | |
---|---|
Total Downloads: | 3,022 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 19 |
Total Watchers: | 3 |
Total Forks: | 3 |
Total Open Issues: | 0 |
With this package you will be able to transform your existent schema (only support mysql at the moment) in migration files of Laravel with the following command:
php artisan revengedb:migrations
Add the package to your Laravel project:
composer require daavelar/revengedb
Add the ServiceProvider to the app.php file
Daavelar\RevengeDb\Providers\RevengeDbServiceProvider::class
Generating a migration file for all tables of the database of your mysql config
php artisan revengedb:migrations
If you want just execute the action in one or more tables, you can pass only as a parameter
php artisan revengedb:migrations --only=table1,table2,table3
If you want just exclude one or more tables, you can pass the except parameter
php artisan revengedb:migrations --except=table1,table2,table3
Important: All migration files will be generated with the $table->timestamps() line.