Refactoring of the 'propel:migration:migrate' command

This commit is contained in:
William DURAND 2011-02-02 19:46:57 +01:00
parent dc72cb2699
commit d49820cf94
2 changed files with 2 additions and 3 deletions

View file

@ -65,5 +65,4 @@ class BuildCommand extends PhingCommand
$sqlCommand->execute($input, $output);
}
}
}

View file

@ -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');