Refactoring of the 'propel:migration:migrate' command
This commit is contained in:
parent
dc72cb2699
commit
d49820cf94
|
@ -65,5 +65,4 @@ class BuildCommand extends PhingCommand
|
|||
$sqlCommand->execute($input, $output);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -61,9 +61,9 @@ EOT
|
|||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
if ($input->hasParameterOption('--down')) {
|
||||
if ($input->getOption('down')) {
|
||||
$this->callPhing('migration-down');
|
||||
} else if($input->hasParameterOption('--up')) {
|
||||
} else if($input->getOption('up')) {
|
||||
$this->callPhing('migration-up');
|
||||
} else {
|
||||
$this->callPhing('migrate');
|
||||
|
|
Loading…
Reference in a new issue