Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.4 #7

Merged
merged 21 commits into from
Mar 20, 2018
Merged

2.0.4 #7

merged 21 commits into from
Mar 20, 2018

Conversation

byjg
Copy link
Owner

@byjg byjg commented Mar 11, 2018

  • 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;

@byjg byjg merged commit 6d7ac3c into master Mar 20, 2018
@byjg byjg deleted the 2.0.4 branch March 22, 2018 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants