jellyhaus / migrations
Simple database migrations
2026.10.7
2026-10-29 12:53 UTC
Requires
- php: ^8.1
Requires (Dev)
- pestphp/pest: *
- phpcompatibility/php-compatibility: ^10.0.0@dev
- phpstan/phpstan: ^2.1
- symfony/console: ^6.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
What is this repository for?
- Keep Track of and Run Migrations
How do I get set up?
- Run
composer require jellyhaus/migrations:* - Within the
CommandProvider.phpor equivelant class, add the following to theregistermethod after the$application = new Application;line:\Jellyhaus\Migrations\Commands::register($application, $container); - Run
php console.php migrations-installto run the initial install
Creating a new Migration
To create a new migration, run the command php console.php make-migration. This will create a new migration file under the project directory database/migrations
Running Migrations
After code updates via a git pull (or via the "post-merge" git hook) run php console.php migrate