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/Factory.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/Models/Factory.php') diff --git a/app/Models/Factory.php b/app/Models/Factory.php index 6c140475e..30465ec04 100644 --- a/app/Models/Factory.php +++ b/app/Models/Factory.php @@ -16,6 +16,7 @@ class FreshRSS_Factory { public static function createCategoryDao(?string $username = null): FreshRSS_CategoryDAO { return match (FreshRSS_Context::systemConf()->db['type'] ?? '') { 'sqlite' => new FreshRSS_CategoryDAOSQLite($username), + 'pgsql' => new FreshRSS_CategoryDAOPGSQL($username), default => new FreshRSS_CategoryDAO($username), }; } @@ -26,6 +27,7 @@ class FreshRSS_Factory { public static function createFeedDao(?string $username = null): FreshRSS_FeedDAO { return match (FreshRSS_Context::systemConf()->db['type'] ?? '') { 'sqlite' => new FreshRSS_FeedDAOSQLite($username), + 'pgsql' => new FreshRSS_FeedDAOPGSQL($username), default => new FreshRSS_FeedDAO($username), }; } -- cgit v1.2.3