develme / database-patch
A patch system designed similar to Laravel's database migration tools. Instead of being used to manage schema, the patch system is used to fill that grey area between a database seeder and a database migration. The intentions of the system is to patch/adjust existing data, but this could be a replac
v5.8.0
2020-03-12 03:09 UTC
Requires
- php: ^7.1.3
- laravel/framework: 5.8.*
This package is auto-updated.
Last update: 2024-10-27 08:09:48 UTC
README
Setup patch directory and table
php artisan patch:install
Check patch status
php artisan patch:status
Create patch to insert data into new table
php artisan make:patch --insert="example_table"
Create patch to update existing table
php artisan make:patch --table="example_table"
Run patches
php artisan patch
Undo all patches
php artisan patch:reset
Undo then rerun all patches
php artisan patch:refresh