aboutsummaryrefslogtreecommitdiff
path: root/app/Models/DatabaseDAOSQLite.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-01-10 08:47:52 +0100
committerGravatar GitHub <noreply@github.com> 2025-01-10 08:47:52 +0100
commit7a79717e102447f72f592fd48aa5d793bcdbf1c6 (patch)
treecf5811933b865be6fae36acfb5e225659cc3fce7 /app/Models/DatabaseDAOSQLite.php
parent82b1d999dcfaccea7996d4dccd4778754ec39389 (diff)
Fix sqlite_version (#7205)
* Fix sqlite_version for https://github.com/FreshRSS/FreshRSS/pull/7161 * Fix PostgreSQL
Diffstat (limited to 'app/Models/DatabaseDAOSQLite.php')
-rw-r--r--app/Models/DatabaseDAOSQLite.php5
1 files changed, 5 insertions, 0 deletions
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
@@ -73,6 +73,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;
if ($all) {