Skip to content

Commit

Permalink
Update SchemaState.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Jun 19, 2024
1 parent f164c1d commit 607a6c5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Illuminate/Database/Schema/SchemaState.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ public function makeProcess(...$arguments)
return call_user_func($this->processFactory, ...$arguments);
}

/**
* Determine if the current connection has a migration table.
*
* @return bool
*/
public function hasMigrationTable(): bool
{
return $this->connection->getSchemaBuilder()->hasTable($this->migrationTable);
}

/**
* Specify the name of the application's migration table.
*
Expand All @@ -119,14 +129,4 @@ public function handleOutputUsing(callable $output)

return $this;
}

/**
* Check if the current connection has a migration table.
*
* @return bool
*/
public function hasMigrationTable(): bool
{
return $this->connection->getSchemaBuilder()->hasTable($this->migrationTable);
}
}

0 comments on commit 607a6c5

Please sign in to comment.