Migrate up

The migrate up command migrates all pending migration for a given migration set.

After successful migration its version is put into database migration table (by default schema_migrations). At the beginning of an operation advisory lock is acquired to prevent other migrations to run simultaneously.

When migration table does not exist, it will be created.


krab migrate up [set]


  • set - name of the set to migrate.


For default migration set you would use:

krab migrate up default