Migration Runner
Database migration runner for Needle ORM (derived from Angel3 ORM).
Supported database:
- PostgreSQL 10.x or greater
- MariaDB 10.2.x or greater
- MySQL 8.x or greater
Usage
-
Use
PostgresMigrationRunnerto perform database migration for PostgreSQL. -
Use
MySqlMigrationRunnerto perform database migration for MySQL and MariaDB. This runner is usingmysql_clientdriver. -
Use
MariaDbMigrationRunnerto perform database migration for MariaDB. This runner is usingmysql1driver.
Supported Operations
- reset - Clear out all records in the
migrationstable and drop all the managed ORM tables. - up - Generate all the managed ORM tables based on the ORM models.
- refresh - Run
resetfollow byup