示例#1
0
 /**
  * Execute the console command.
  * @return void
  */
 public function fire()
 {
     $this->migrator->setConnection($this->input->getOption('database'));
     if (!$this->migrator->repositoryExists()) {
         $this->output->writeln('<comment>Migration table not found.</comment>');
         return;
     }
     $pretend = $this->input->getOption('pretend');
     $this->migrator->reset($pretend);
     foreach ($this->migrator->getNotes() as $note) {
         $this->output->writeln($note);
     }
 }