Skip to content

Commit

Permalink
Merge pull request #33 from bluzphp/develop
Browse files Browse the repository at this point in the history
Fixed Phinx proxy
  • Loading branch information
Anton authored Oct 24, 2017
2 parents 7f89e76 + 3d7d31b commit 6f695fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Command/Db/AbstractDbCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
}

$phinxArguments['command'] = $commandName;
$phinxArguments['--configuration'] = PATH_APPLICATION .DS. 'configs' .DS. 'phinx.php';
$phinxArguments['--environment'] = 'default';
$phinxArguments['--configuration'] = PATH_APPLICATION . DS . 'configs' . DS . 'phinx.php';
if ($command->getDefinition()->hasOption('environment')) {
$phinxArguments['--environment'] = 'default';
}

$phinxInput = new ArrayInput($phinxArguments);
$command->run($phinxInput, $output);
Expand Down

0 comments on commit 6f695fb

Please sign in to comment.