platform/packages/orm/angel_migration_runner
thomashii@dukefirehawk.com c6ca7b4e65 Bumped to Dart >= 2.19
2023-04-22 13:41:41 +08:00
..
example Fixed MariaDB migration 2022-04-30 10:11:22 +08:00
lib Fixed MariaDbMigrationRunner, which assumed "batch" column to be string instead of int 2023-03-07 09:15:39 +01:00
.gitignore Update authors and licence 2021-05-15 21:37:00 +08:00
analysis_options.yaml Updated linter 2021-12-20 12:25:43 +08:00
AUTHORS.md Update authors and licence 2021-05-15 21:37:00 +08:00
CHANGELOG.md Bumped to Dart >= 2.19 2023-04-22 13:41:41 +08:00
LICENSE Updated linter 2021-12-20 12:25:43 +08:00
melos_angel3_migration_runner.iml Added melos 2022-03-19 09:37:28 +08:00
pubspec.yaml Bumped to Dart >= 2.19 2023-04-22 13:41:41 +08:00
README.md Fixed migration runner for MySQL 2022-07-27 22:21:36 +08:00

Angel3 Migration Runner

Pub Version (including pre-releases) Null Safety Gitter License

Database migration runner for Angel3 ORM.

Supported database:

  • PostgreSQL 10.x or greater
  • MariaDB 10.2.x or greater
  • MySQL 8.x or greater

Usage

  • Use PostgresMigrationRunner to perform database migration for PostgreSQL.

  • Use MySqlMigrationRunner to perform database migration for MySQL and MariaDB. This runner is using mysql_client driver.

  • Use MariaDbMigrationRunner to perform database migration for MariaDB. This runner is usingmysql1 driver.

Supported Operations

  • reset - Clear out all records in the migrations table and drop all the managed ORM tables.
  • up - Generate all the managed ORM tables based on the ORM models.
  • refresh - Run reset follow by up