Skip to content

Commit

Permalink
Fix execution of separate-processes migrations for some ways of invoc…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
gggeek committed Oct 14, 2016
1 parent 295127d commit 02b98b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Command/MigrateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ class MigrateCommand extends AbstractCommand
protected $output;
protected $verbosity = OutputInterface::VERBOSITY_NORMAL;

const COMMAND_NAME='kaliop:migration:migrate';

/**
* Set up the command.
*
Expand All @@ -33,7 +35,7 @@ protected function configure()
parent::configure();

$this
->setName('kaliop:migration:migrate')
->setName(self::COMMAND_NAME)
->setAliases(array('kaliop:migration:update'))
->setDescription('Execute available migration definitions.')
->addOption(
Expand Down Expand Up @@ -166,7 +168,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
// mandatory args and options
$builderArgs = array(
$_SERVER['argv'][0], // sf console
$_SERVER['argv'][1], // name of sf command
self::COMMAND_NAME, // name of sf command. Can we get it from the Application instead of hardcoding?
'--env=' . $this->getContainer()->get('kernel')->getEnvironment(), // sf env
'--child'
);
Expand Down

0 comments on commit 02b98b4

Please sign in to comment.