2.0.4
版本发布时间: 2018-03-20 10:40:28
byjg/php-migration最新发布版本:4.9.1(2024-01-06 04:23:36)
- 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;