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); }
protected function execute(InputInterface $input, OutputInterface $output) { parent::execute($input, $output); $this->migration->up($this->upTo); }