From 5e8c964f6cc735c49e686022700144307e903dd1 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 27 Sep 2025 15:11:55 +0200 Subject: Stable IDs during SQL import (#7988) * Stable IDs during SQL import Follow-up of https://github.com/FreshRSS/FreshRSS/pull/7949 Make sure that the original category IDs, feed IDs, and label IDs are kept identical during an SQL import. Avoid breaking everything referring to categories, feeds, labels by their IDs such as searches and third-party extensions. * Fix export of default category --- app/Models/FeedDAOSQLite.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Models/FeedDAOSQLite.php') diff --git a/app/Models/FeedDAOSQLite.php b/app/Models/FeedDAOSQLite.php index 42915a493..a12fb2adb 100644 --- a/app/Models/FeedDAOSQLite.php +++ b/app/Models/FeedDAOSQLite.php @@ -3,6 +3,11 @@ declare(strict_types=1); class FreshRSS_FeedDAOSQLite extends FreshRSS_FeedDAO { + #[\Override] + public function sqlResetSequence(): bool { + return true; // Nothing to do for SQLite + } + /** @param array{0:string,1:int,2:string} $errorInfo */ #[\Override] protected function autoUpdateDb(array $errorInfo): bool { -- cgit v1.2.3