Refactoring of the 'propel:migration:migrate' command
This commit is contained in:
parent
dc72cb2699
commit
d49820cf94
2 changed files with 2 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue