/** * 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!'); }
/** * 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); }