down

Migrate down

The migrate down command rollbacks selected migration.

After successful operation its version is removed from the migration table. At the beginning of an operation advisory lock is acquired to prevent other operations to run simultaneously.

Usage

krab migrate down [set] [version]

Options

  • set - name of the set to migrate.
  • version - migration version to rollback.

Example

For default migration set and migration version 20060102150405 you would use:

krab migrate down default 20060102150405