Release 2.0.4
- The Uri parameter now is a generic PSR UriInterface
- Removed Unnecessary comments, Fix and Updated PHPDocs
- Added automated tests (.travis) for MySQL, PostgresSQL and MS Sql
- Decoupling Database classes from Migration class
- "base.sql" file should be optional.
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;