Ejemplo n.º 1
0
 /**
  * Execute the console command.
  *
  * @return null|int
  */
 protected function fire()
 {
     if ($this->database->checkMigrationTableExistence()) {
         $this->abort("Table \"{$this->table}\" already exists");
     }
     $this->database->createMigrationTable();
     $this->info('Migration table has been successfully created!');
 }
Ejemplo n.º 2
0
 /**
  * Remove a migration name from the database so it can be run again.
  *
  * @param string $file
  *
  * @return void
  */
 public function removeSuccessfulMigrationFromLog($file)
 {
     $this->database->removeSuccessfulMigrationFromLog($file);
 }