Execute a single migration in up or down direction. If $path is given, the
SQL statements will be written to the file in $path instead of executed.
public executeMigration ( string $version, string $direction = 'up', string $outputPathAndFilename = null, boolean $dryRun = false ) : string | ||
$version | string | The version to migrate to |
$direction | string | |
$outputPathAndFilename | string | A file to write SQL to, instead of executing it |
$dryRun | boolean | Whether to do a dry run or not |
return | string |