diff --git a/packages/orm/angel_migration_runner/CHANGELOG.md b/packages/orm/angel_migration_runner/CHANGELOG.md index c1fdf437..ed9c1855 100755 --- a/packages/orm/angel_migration_runner/CHANGELOG.md +++ b/packages/orm/angel_migration_runner/CHANGELOG.md @@ -2,7 +2,8 @@ ## 6.0.1 -* Fixed MariaDb migration +* Added `MariaDbMigrationRunner` to support MariaDB migration with `mysql1` driver +* Updated `MySqlMigrationRunner` to support MySQL migration with `mysql_client` driver ## 6.0.0 diff --git a/packages/orm/angel_migration_runner/README.md b/packages/orm/angel_migration_runner/README.md index cb7218b7..4ac16898 100755 --- a/packages/orm/angel_migration_runner/README.md +++ b/packages/orm/angel_migration_runner/README.md @@ -10,5 +10,15 @@ Command-line based database migration runner for Angel3 ORM. Supported database: * PostgreSQL version 10 or later -* MariaDB 10.2.x -* MySQL 8.x +* MariaDB 10.2.x or later +* MySQL 8.x or later + +## Usage + +* For PostgreSQL, use `PostgresMigrationRunner` to perform the database migration. + +* For MariaDB, use `MariaDbMigrationRunner` to perform the database migration. + +* For MySQL, use `MySqlMigrationRunner` to perform the database migration. + +**Important Notes** For MariaDB and MySQL, both migration runner are using different drivers. MariaDB is using `mysql1` driver while MySQL is using `mysql_client` driver. This is necessary as neither driver works correctly over both MariaDB and MySQL. Based on testing, `mysql1` driver works seamlessly with MariaDB 10.2.x while `mysql_client` works well with MySQL 8.x. diff --git a/packages/orm/angel_migration_runner/pubspec.yaml b/packages/orm/angel_migration_runner/pubspec.yaml index e39c3c73..1f018cc5 100755 --- a/packages/orm/angel_migration_runner/pubspec.yaml +++ b/packages/orm/angel_migration_runner/pubspec.yaml @@ -11,7 +11,7 @@ dependencies: args: ^2.1.0 charcode: ^1.2.0 postgres: ^2.4.0 - mysql_client: ^0.0.11 + mysql_client: ^0.0.15 mysql1: ^0.19.0 logging: ^1.0.0 dev_dependencies: