Skip to content

Commit

Permalink
Merge pull request #294 from C-ArenA/v1.x
Browse files Browse the repository at this point in the history
Solves problem with postgresql databases in Laravel 11
  • Loading branch information
finiteinfinity authored Sep 12, 2024
2 parents 0ea3640 + 66c01b5 commit 75111e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Meta/Postgres/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 75111e5

Please sign in to comment.