2017 © Pedro Peláez
 

library migrateur

Console app for running migrations on multiple databases in one go

image

adamgajzlerowicz/migrateur

Console app for running migrations on multiple databases in one go

  • Thursday, December 17, 2015
  • by adamgajzlerowicz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 52 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

Migrateur

Purpose:

To run migrations on multiple databases simultaneously, using command line., (*1)

Installation:

Clone the repository and run composer install. Rename env-example.php to env.php. Put your configuration into the config file., (*2)

Configuration:

You will need one primary database, that contains usernames, passwords and database names for all databases you want to run migrations on. Default configuration assumes that your "main" database name is companydatabases that has a databasesettings table, and it will read from dbusername, dbpassword and dbname fields., (*3)

You may change the name of your "main" database in the config file. Example table structure will look like this (please notice the company1, company2 and company3 table), (*4)

databases, (*5)

Usage:

In the root folder of the application execute php console.php. This will give you access to three commands: migrate:check, migrate:create and migrate:migrate. The first run of migrate:check command will check if migrations table exist, and create it if it doesn't., (*6)

Daily usage

  • generate new migrations using the migrate:create
  • check status of your migrations with migrate:check
  • run your migrations using migrate:migrate
  • check if the migration run successfully migrate:check

console, (*7)

The Versions

17/12 2015

dev-master

9999999-dev https://github.com/adamgajzlerowicz/migrateur

Console app for running migrations on multiple databases in one go

  Sources   Download

MIT

The Requires

 

database multiple

17/12 2015
07/12 2015
07/12 2015
05/12 2015
26/11 2015
26/11 2015
26/11 2015
25/11 2015
23/11 2015