Releases: byjg/php-migration
Releases · byjg/php-migration
Release 4.0.2
Several improvements for Postgresql based on issue #18
Release 4.0.1
Important change -- Removed Dependency from Symfony/Console by splitting the project in two parts - Migration and Migration-Cli
Release 4.0.0
Upgraded Anydataset component
Release 2.1.0
Added support for multiple migrations in one schema.
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;
Release 2.0.3
- Improved Composer Generalization
- Added new environment variables and update documentation:
- MIGRATE_DISABLE_RESET
- MIGRATE_PATH
- MIGRATE_CONNECTION (docs only)
Release 2.0.2
Added the reset --yes
Release 2.0.1
Fixed error on get some migration version
Release 2.0.0
- Add the version status to indicate if the migrate is complete or fail!
- Better management of the current database status;
- Update the version number script;
- Added the "DEV" sql script
- Fixed GLOB_BRACE in Alpine.
- Add the UPDATE (the system choose if UP or DOWN the database)
- Better error message in console.
- Renamed classes
Release 1.1.1
Added the method to get the current version