protected function configure() { // Name cannot be 'list' because that's the name of the Symfony command run if no // name is specified. $this->setName('list-migrations')->setDescription('List available migrations.'); parent::configure(); }
protected function configure() { $this->setName('test')->setDescription('Test a migration up and down.')->addArgument('name', InputArgument::REQUIRED, 'The class name, formatted like "UpdateAddressStructure_20140523".')->addArgument('direction', InputArgument::OPTIONAL, 'Whether to test going up or down. If left blank, both are tested.')->addOption('pretty', null, InputArgument::OPTIONAL, 'Whether to pretty-print the output if there is an error.', false); parent::configure(); }
protected function configure() { $this->setName('test-all')->setDescription('Test all migrations up and down.'); parent::configure(); }