Skip to content

Release 2.0.4

Compare
Choose a tag to compare
@byjg byjg released this 20 Mar 02:40
· 124 commits to master since this release
6d7ac3c
  • 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;