Browse Source

Update DB\Pgsql

Visman 3 năm trước cách đây
mục cha
commit
fac9ef1c8d
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      app/Core/DB/Pgsql.php

+ 3 - 2
app/Core/DB/Pgsql.php

@@ -490,8 +490,9 @@ class Pgsql
         $blockSize = $this->db->query('SELECT current_setting(\'block_size\')')->fetchColumn();
         $size     *= $blockSize ?: 8192;
 
-        $other = [];
-        $other['pg_database_size'] = $this->db->query('SELECT pg_size_pretty(pg_database_size(current_database()))')->fetchColumn();
+        $other = [
+            'pg_database_size' => $this->db->query('SELECT pg_size_pretty(pg_database_size(current_database()))')->fetchColumn(),
+        ];
 
         return [
             'db'          => 'PostgreSQL (PDO) v.' . $this->db->getAttribute(PDO::ATTR_SERVER_VERSION),