From 66c01b523f76de0118e7fb2f7cb6aec0e2603549 Mon Sep 17 00:00:00 2001 From: C-ArenA Date: Wed, 28 Aug 2024 20:00:07 -0400 Subject: [PATCH] fix: Solve problem with postgresql databases in Laravel 11 #286 #292 --- src/Meta/Postgres/Schema.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Meta/Postgres/Schema.php b/src/Meta/Postgres/Schema.php index edfb0e27..be986c69 100644 --- a/src/Meta/Postgres/Schema.php +++ b/src/Meta/Postgres/Schema.php @@ -283,7 +283,8 @@ protected function wrap($table) */ public static function schemas(Connection $connection) { - $schemas = $connection->getDoctrineSchemaManager()->listDatabases(); + $schemas = $connection->select('SELECT datname FROM pg_database'); + $schemas = array_column($schemas, 'datname'); return array_diff($schemas, [ 'postgres',