Esempio n. 1
0
 /**
  * @return void
  */
 public function fire()
 {
     $this->prepareDatabase();
     $pretend = $this->input->getOption('pretend');
     if (!is_null($path = $this->input->getOption('path'))) {
         $path = $this->notadd->basePath() . '/' . $path;
     } else {
         $path = $this->getMigrationPath();
     }
     $this->migrator->run($path, $pretend);
     foreach ($this->migrator->getNotes() as $note) {
         $this->output->writeln($note);
     }
     if ($this->input->getOption('seed')) {
         $this->call('db:seed', ['--force' => true]);
     }
 }