develme/database-patch

一个类似于Laravel数据库迁移工具的补丁系统。该补丁系统不是用来管理模式的,而是用来填补数据库播种器和数据库迁移之间的灰色区域。该系统的意图是修复/调整现有数据,但这可能是一个替代

v5.8.0 2020-03-12 03:09 UTC

This package is auto-updated.

Last update: 2024-09-27 07:59:51 UTC


README

设置补丁目录和表

    php artisan patch:install

检查补丁状态

    php artisan patch:status

创建插入新表的补丁

    php artisan make:patch --insert="example_table"

创建更新现有表的补丁

    php artisan make:patch --table="example_table"

运行补丁

    php artisan patch

撤销所有补丁

    php artisan patch:reset

撤销后重新运行所有补丁

    php artisan patch:refresh