Skip to content

Commit

Permalink
Update DbConnectionInfo.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphjsmit committed Jan 25, 2023
1 parent db46eb5 commit 157c960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/DbConnectionInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected function getMySQLDatabaseSize(ConnectionInterface $connection): int

protected function getPostgresDatabaseSize(ConnectionInterface $connection): int
{
return $connection->selectOne('SELECT pg_size_pretty(pg_database_size(?));', [
return $connection->selectOne('SELECT pg_size_pretty(pg_database_size(?)) AS size;', [
$connection->getDatabaseName(),
])->size;
}
Expand Down

0 comments on commit 157c960

Please sign in to comment.