Пример #1
0
 protected function configure()
 {
     parent::configure();
     $this->setName('exec')->setDescription('Execute scripts')->addArgument('directory', InputArgument::REQUIRED, 'Sql scripts directory.');
 }
Пример #2
0
 protected function configure()
 {
     parent::configure();
     $this->setName('fix')->setDescription('Fix migrate version')->addOption('all', null, InputOption::VALUE_NONE, 'Fix all versions')->addOption('clear', null, InputOption::VALUE_NONE, 'Clear version')->addArgument('version', InputArgument::OPTIONAL, 'Fix version');
 }
Пример #3
0
 protected function configure()
 {
     parent::configure();
     $this->setName('migrate')->setDescription('Execute migration');
 }
Пример #4
0
 protected function configure()
 {
     parent::configure();
     $this->setName('status')->setDescription('Show migrate status');
 }