jens / phpmysqlmigration
There is no license information available for the latest version (dev-master) of this package.
Execute raw MySQL files from folder, that havn't already been
dev-master
2016-10-19 11:46 UTC
Requires
- php: >=5.3.0
- lichtner/fluentpdo: 1.1.0
This package is not auto-updated.
Last update: 2025-04-07 15:18:04 UTC
README
Automate migration of raw MySQL files.
Install
composer require jens/phpmysqlmigration
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.
$res = \Phpmysqlmigration\Phpmysqlmigration::reset(__DIR__.'/database_migrations/', array('host' => 'localhost', 'username' => 'root', 'password' => '', 'database' => 'db'));