2017 © Pedro Peláez
 

library phpmysqlmigration

Execute raw MySQL files from folder, that havn't already been

image

jens/phpmysqlmigration

Execute raw MySQL files from folder, that havn't already been

  • Wednesday, October 19, 2016
  • by JensJI
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

phpmysqlmigration

Automate migration of raw MySQL files., (*1)

Install

composer require jens/phpmysqlmigration, (*2)

Run migrations

$res = \Phpmysqlmigration\Phpmysqlmigration::start(__DIR__.'/database_migrations/', array('host' => 'localhost', 'username' => 'root', 'password' => '', 'database' => 'db'));

Mark everything as up-to-date

If everything is migrated, but not marked as such, you can use the reset-function to mark every files as migrated., (*3)

$res = \Phpmysqlmigration\Phpmysqlmigration::reset(__DIR__.'/database_migrations/', array('host' => 'localhost', 'username' => 'root', 'password' => '', 'database' => 'db'));

The Versions

19/10 2016

dev-master

9999999-dev

Execute raw MySQL files from folder, that havn't already been

  Sources   Download

The Requires

 

by Jens Just Iversen