Skip to content

Commit 75111e5

Browse files
Merge pull request #294 from C-ArenA/v1.x
Solves problem with postgresql databases in Laravel 11
2 parents 0ea3640 + 66c01b5 commit 75111e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Meta/Postgres/Schema.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ protected function wrap($table)
283283
*/
284284
public static function schemas(Connection $connection)
285285
{
286-
$schemas = $connection->getDoctrineSchemaManager()->listDatabases();
286+
$schemas = $connection->select('SELECT datname FROM pg_database');
287+
$schemas = array_column($schemas, 'datname');
287288

288289
return array_diff($schemas, [
289290
'postgres',

0 commit comments

Comments
 (0)