Skip to content

Commit 425f43d

Browse files
authored
Merge pull request #85 from krewenki/5.x
Use connection specified in Settings when fetching config())
2 parents 52e415d + 1497469 commit 425f43d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MigrationsGenerator/DBAL/Support/FilterTables.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function isPgSQLWantedTable(string $table): bool
4040
}
4141

4242
// Schema name defined in Laravel framework.
43-
$schema = DB::connection()->getConfig('schema');
43+
$schema = app(MigrationsGeneratorSetting::class)->getConnection()->getConfig('schema');
4444

4545
$parts = explode('.', $table);
4646
$namespace = $parts[0];

0 commit comments

Comments
 (0)