rareloop / hatchet-migrations
此包最新版本(dev-master)没有提供许可信息。
dev-master
2020-04-24 14:17 UTC
Requires
- rareloop/hatchet: ^1.0.1
- robmorgan/phinx: ^0.11.0
Requires (Dev)
- brain/monkey: ^2.0.2
- codedungeon/phpunit-result-printer: ^0.4.4
- mockery/mockery: ^1.0.0
- phpunit/phpunit: ^6.0
- satooshi/php-coveralls: ^1.0
- squizlabs/php_codesniffer: ^3.2
This package is auto-updated.
Last update: 2024-09-24 23:51:37 UTC
README
此包提供了一个包装器,围绕Phinx数据库迁移包,与Hatchet和Lumberjack集成。
安装
composer require rareloop/hatchet-migrations
安装完成后,在config/app.php中注册服务提供者。
'providers' => [ ... Rareloop\Hatchet\Migrations\MigrationsServiceProvider::class, ... ],
将示例config/migrations.php文件复制到你的主题目录中(可选)。
请确保为你的迁移和种子创建所需的文件夹。如果你不更改默认配置,那么这些将分别是:
{theme}/database/migrations
{theme}/database/seeds
使用方法
此包提供了以下命令
有关每个命令的使用信息,请参阅相关Phinx文档或使用hatchet CLI
php hatchet help {command}