Byjg Migration Versions Save

Simple library writen in PHP without framework dependancy for database version control. Supports Sqlite, MySql, Sql Server and Postgres

4.0.0

5 years ago

Upgraded Anydataset component

2.1.0

5 years ago

Added support for multiple migrations in one schema.

2.0.4

6 years ago
  • 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;

2.0.3

6 years ago
  • Improved Composer Generalization
  • Added new environment variables and update documentation:
    • MIGRATE_DISABLE_RESET
    • MIGRATE_PATH
    • MIGRATE_CONNECTION (docs only)

2.0.2

6 years ago

Added the reset --yes

2.0.1

6 years ago

Fixed error on get some migration version

2.0.0

7 years ago
  • 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

1.1.1

7 years ago

Added the method to get the current version

1.1.0

7 years ago
  • Upgrade to new AnyDataset version
  • Added PgsqlCommand
  • Added DblibCommand (SQL Server)
  • Added Unit tests

1.0.2

7 years ago

Added the migration command line script.