Create a new Migrator instance
Configuration options
Get the PrormMigration instance
Get the QueryInterface
Register a migration file
Path to the migration file
Find and register all migration files in a directory
Get all registered migrations
List pending (not yet executed) migrations
List all executed migrations
Get migration status for all migrations
Run all pending migrations
Optionaloptions: { migration?: string; batch?: number }
Migration options
Revert migrations
Optionaloptions: { migration?: string; steps?: number }
Revert options
Revert all executed migrations with a batch number greater than
targetBatch, actually running each migration's down() function
(loaded the same way up() is) before removing its tracking row.
Batch number to revert down to
Get database version
Sync the migrations table
Set the migration path
Get the current migration path
Migrator class - Manages database migrations