Search by

jellyhaus / migrations

Jas-n

Simple database migrations

Package info

bitbucket.org/jellyhaus/migrations

pkg:composer/jellyhaus/migrations

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

2026.10.3 2026-10-19 12:19 UTC

This package is auto-updated.

Last update: 2026-10-19 12:20:23 UTC


README

What is this repository for?

  • Keep Track of and Run Migrations

How do I get set up?

  1. Run composer require jellyhaus/migrations
  2. Within the CommandProvider.php or equivelant class, add the following to the register method after the $application = new Application; line:
    \Jellyhaus\Migrations\Commands::register($application, $container);
    
  3. Run php console.php migrations-install to 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