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

This package is auto-updated.

Last update: 2024-04-27 07:13:21 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