rareloop / hatchet-migrations
There is no license information available for the latest version (dev-master) of this package.
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: 2025-02-25 00:38:04 UTC
README
Provides a wrapper around the Phinx Database Migrations package that integrates with Hatchet & Lumberjack.
Installation
composer require rareloop/hatchet-migrations
Once installed, register the Service Provider in config/app.php:
'providers' => [ ... Rareloop\Hatchet\Migrations\MigrationsServiceProvider::class, ... ],
Copy the example config/migrations.php
file to you theme directory (optional).
Make sure you create the needed folders for your migrations and seeds. If you don't change the default config then these will be:
{theme}/database/migrations
{theme}/database/seeds
Usage
This package makes the following commands are available to you:
Hatchet Command | Description | Related Phinx Documentation |
---|---|---|
make:migration |
Create a new migration file | phinx create |
migrate |
Run migration(s) | phinx migrate |
migrate:rollback |
Rollback migration(s) | phinx rollback |
migrate:status |
Output the current status on which migrations have been run | phinx status |
make:seeder |
Create a Database Seeder | phinx seed:create |
db:seed |
Run seed(s) | phinx seed:run |
For usage information on each command either consult the associated Phinx documentation or use the hatchet CLI:
php hatchet help {command}