Skip to content

Releases: byjg/php-migration

Release 4.0.0

24 Nov 20:24
8b4b1a2
Compare
Choose a tag to compare

Upgraded Anydataset component

Release 2.1.0

24 Sep 02:42
0b78c0f
Compare
Choose a tag to compare

Added support for multiple migrations in one schema.

Release 2.0.4

20 Mar 02:40
6d7ac3c
Compare
Choose a tag to compare
  • 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

05 Feb 01:20
Compare
Choose a tag to compare
  • Improved Composer Generalization
  • Added new environment variables and update documentation:
    • MIGRATE_DISABLE_RESET
    • MIGRATE_PATH
    • MIGRATE_CONNECTION (docs only)

Release 2.0.2

21 Nov 20:01
Compare
Choose a tag to compare

Added the reset --yes

Release 2.0.1

10 Nov 20:53
38429be
Compare
Choose a tag to compare

Fixed error on get some migration version

Release 2.0.0

27 May 20:53
Compare
Choose a tag to compare
  • 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

09 May 17:16
Compare
Choose a tag to compare

Added the method to get the current version

Release 1.1.0

02 May 21:35
Compare
Choose a tag to compare
  • Upgrade to new AnyDataset version
  • Added PgsqlCommand
  • Added DblibCommand (SQL Server)
  • Added Unit tests

Release 1.0.2

18 Jun 17:42
Compare
Choose a tag to compare

Added the migration command line script.