コード例 #1
0
ファイル: ResetCommand.php プロジェクト: byjg/migration
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $helper = $this->getHelper('question');
     $question = new ConfirmationQuestion('This will ERASE all of data in your data. Continue with this action? (y/N) ', false);
     if (!$helper->ask($input, $output, $question)) {
         $output->writeln('Aborted.');
         return;
     }
     parent::execute($input, $output);
     $this->migration->prepareEnvironment();
     $this->migration->reset($this->upTo);
 }
コード例 #2
0
ファイル: UpCommand.php プロジェクト: byjg/migration
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     parent::execute($input, $output);
     $this->migration->up($this->upTo);
 }