MigrationsRunner defines a simple struct for managing the execution of db migrations.
Down reverts the last toRevertCount applied migrations (in the order they were applied).
toRevertCount
On success returns list with the reverted migrations file names.
RemoveMissingAppliedMigrations removes the db entries of all applied migrations that are not listed in the runner's migrations list.
Run interactively executes the current runner with the provided args.
The following commands are supported:
Rest
Up executes all unapplied migrations for the provided runner.
On success returns list with the applied migrations file names.
Generated using TypeDoc
MigrationsRunner defines a simple struct for managing the execution of db migrations.