This iterates over available migrations and applies them to
the existing packages if
- the package needs the migration
- is a clean git working copy
public migrate ( string $packageKey = null, string $versionNumber = null, boolean $force = false ) : void | ||
$packageKey | string | key of the package to migrate, or NULL to migrate all packages |
$versionNumber | string | version of the migration to execute (e.g. "20120126163610"), or NULL to execute all migrations |
$force | boolean | if TRUE migrations will be applied even if the corresponding package is not a git working copy or contains local changes |
Результат | void |