byjg / php-migration

Simple library writen in PHP without framework dependancy for database version control. Supports Sqlite, MySql, Sql Server and Postgres
MIT License
155 stars 27 forks source link

2.0.4 #7

Closed byjg closed 6 years ago

byjg commented 6 years ago

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;