Skip to content

Commit

Permalink
Use provided $connection to get schema
Browse files Browse the repository at this point in the history
  • Loading branch information
emiliopedrollo committed Jan 20, 2021
1 parent 502e75b commit 97f6f21
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Database/Schema/PostgresSchemaState.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ class PostgresSchemaState extends SchemaState
*/
public function dump(Connection $connection, $path)
{
$schemaBuilder = $connection->getSchemaBuilder();
$schema = $schemaBuilder->getConnection()->getConfig('schema');

$schema = $connection->getConfig('schema');
$excludedTables = collect($connection->getSchemaBuilder()->getAllTables())
->map->tablename
->reject(function ($table) {
Expand Down

0 comments on commit 97f6f21

Please sign in to comment.