diff options
| author | 2025-09-27 15:11:55 +0200 | |
|---|---|---|
| committer | 2025-09-27 15:11:55 +0200 | |
| commit | 5e8c964f6cc735c49e686022700144307e903dd1 (patch) | |
| tree | 2b288fb84b316c1fda90759f4e1e921b508ad1c2 /app/Models/CategoryDAOSQLite.php | |
| parent | fdbdd118bfd48332443af83e29a34396595f2668 (diff) | |
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
Diffstat (limited to 'app/Models/CategoryDAOSQLite.php')
| -rw-r--r-- | app/Models/CategoryDAOSQLite.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Models/CategoryDAOSQLite.php b/app/Models/CategoryDAOSQLite.php index f4db76299..ee59d0754 100644 --- a/app/Models/CategoryDAOSQLite.php +++ b/app/Models/CategoryDAOSQLite.php @@ -3,6 +3,11 @@ declare(strict_types=1); class FreshRSS_CategoryDAOSQLite extends FreshRSS_CategoryDAO { + #[\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 { |
