Skip to content

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 replacement for seeders since whether a patch has bee…

Notifications You must be signed in to change notification settings

develme/database-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

database-patch

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

About

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 replacement for seeders since whether a patch has bee…

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages