jellyhaus / migrations
Simple database migrations
2026.10.3
2026-10-19 12:19 UTC
Requires
- php: 8.1
Requires (Dev)
- 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 (of via the "post-merge" git hook) run php console.php migrate