Simple library writen in PHP without framework dependancy for database version control. Supports Sqlite, MySql, Sql Server and Postgres
Upgraded Anydataset component
Added support for multiple migrations in one schema.
Breaking changes notes
If you are using the API Directly you have to register the database before use:
Before this version:
<?php
$migration = new \ByJG\DbMigration\Migration($uri, __DIR__);
// ... some other things
After 2.0.4:
<?php
$migration = new \ByJG\DbMigration\Migration($uri, __DIR__);
$migration->registerDatabase('mysql', \ByJG\DbMigration\Database\MySqlDatabase::class);
// ... some other things
This change does not affect the command line migration script;
Added the reset --yes
Fixed error on get some migration version
Added the method to get the current version
Added the migration command line script.