summaryrefslogtreecommitdiff
path: root/app/Models/EntryDAOSQLite.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-09-14 22:36:01 +0200
committerGravatar GitHub <noreply@github.com> 2025-09-14 22:36:01 +0200
commit29446a29f58b484817e6c9798c736e5f531c21ee (patch)
tree0648fd296f4e12641d2d7e2ff1be56696dbea1f6 /app/Models/EntryDAOSQLite.php
parentb8af8382f0978d19763a75032128fb623e4f9eb0 (diff)
Recovery: skip broken entries during CLI export/import (#7949)
* Recovery: skip broken entries during CLI export/import fix https://github.com/FreshRSS/FreshRSS/discussions/7927 ``` 25605/25605 (48 broken) ``` Help with *database malformed* or other corruption. * Compatibility multiple databases
Diffstat (limited to 'app/Models/EntryDAOSQLite.php')
-rw-r--r--app/Models/EntryDAOSQLite.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Models/EntryDAOSQLite.php b/app/Models/EntryDAOSQLite.php
index c2470f0d6..d46b48f27 100644
--- a/app/Models/EntryDAOSQLite.php
+++ b/app/Models/EntryDAOSQLite.php
@@ -29,6 +29,12 @@ class FreshRSS_EntryDAOSQLite extends FreshRSS_EntryDAO {
}
#[\Override]
+ protected static function sqlLimitAll(): string {
+ // https://sqlite.org/lang_select.html#the_limit_clause
+ return '-1';
+ }
+
+ #[\Override]
public static function sqlRandom(): string {
return 'RANDOM()';
}