jens / phpmysqlmigration
Execute raw MySQL files from folder, that havn't already been
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/jens/phpmysqlmigration
Requires
- php: >=5.3.0
- lichtner/fluentpdo: 1.1.0
This package is not auto-updated.
Last update: 2025-10-06 17:56:40 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'));