platform/packages/orm/angel_migration_runner
Thomas ab36e7ccac
Merge pull request #127 from Garthi/orm_migration_column_change_fix
change MySQL/MariaDB SQL statement for changeColumnType method
2024-06-22 11:50:21 +08:00
..
example Updated to support postgresql 3 driver 2024-02-12 12:31:33 +08:00
lib change MySQL/MariaDB SQL statement for changeColumnType method 2024-06-20 18:04:44 +02: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 Updated pubspec 2024-02-18 18:56:40 +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 Updated lints 2024-05-22 00:26:09 +08:00
README.md Updated change log 2024-01-25 12:48:43 +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 using mysql1 driver.

Supported Operations

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

To do

  • Update existing tables
  • Reverse engineer tables into models