From 7a79717e102447f72f592fd48aa5d793bcdbf1c6 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 10 Jan 2025 08:47:52 +0100 Subject: Fix sqlite_version (#7205) * Fix sqlite_version for https://github.com/FreshRSS/FreshRSS/pull/7161 * Fix PostgreSQL --- app/Models/DatabaseDAOSQLite.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Models/DatabaseDAOSQLite.php') diff --git a/app/Models/DatabaseDAOSQLite.php b/app/Models/DatabaseDAOSQLite.php index c425135b5..13c73a2d7 100644 --- a/app/Models/DatabaseDAOSQLite.php +++ b/app/Models/DatabaseDAOSQLite.php @@ -72,6 +72,11 @@ class FreshRSS_DatabaseDAOSQLite extends FreshRSS_DatabaseDAO { ]; } + #[\Override] + protected function selectVersion(): string { + return $this->fetchValue('SELECT sqlite_version()') ?? ''; + } + #[\Override] public function size(bool $all = false): int { $sum = 0; -- cgit v1.2.3