diff options
Diffstat (limited to 'app/Models/DatabaseDAOPGSQL.php')
| -rw-r--r-- | app/Models/DatabaseDAOPGSQL.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Models/DatabaseDAOPGSQL.php b/app/Models/DatabaseDAOPGSQL.php index 29b16e3dc..7976d5e14 100644 --- a/app/Models/DatabaseDAOPGSQL.php +++ b/app/Models/DatabaseDAOPGSQL.php @@ -6,8 +6,8 @@ class FreshRSS_DatabaseDAOPGSQL extends FreshRSS_DatabaseDAOSQLite { //PostgreSQL error codes - const UNDEFINED_COLUMN = '42703'; - const UNDEFINED_TABLE = '42P01'; + public const UNDEFINED_COLUMN = '42703'; + public const UNDEFINED_TABLE = '42P01'; public function tablesAreCorrect(): bool { $db = FreshRSS_Context::$system_conf->db; @@ -71,13 +71,13 @@ pg_total_relation_size('`{$this->pdo->prefix()}entrytag`') SQL; $res = $this->fetchColumn($sql, 0); } - return intval($res[0] ?? -1); + return (int)($res[0] ?? -1); } public function optimize(): bool { $ok = true; - $tables = array('category', 'feed', 'entry', 'entrytmp', 'tag', 'entrytag'); + $tables = ['category', 'feed', 'entry', 'entrytmp', 'tag', 'entrytag']; foreach ($tables as $table) { $sql = 'VACUUM `_' . $table . '`'; |
