From a4b647972ec24d13292c4a6d31123bb6a7def772 Mon Sep 17 00:00:00 2001 From: AeonLucid Date: Sun, 17 May 2026 01:07:56 +0200 Subject: [PATCH] Add default pageCount value to fix PSQLException (#2039) * Add default pageCount value to fix PSQLException * Update CHANGELOG.md --- CHANGELOG.md | 1 + server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 601f1a123..da46ff583 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). - (WebUI) Wait until WebUI is ready to open in browser - (Downloads) Truncate filenames by byte length to prevent "File name too long" IO errors - (Extension) Do not indicate an update is available when the extension is not installed +- (Chapter) Fix database error when fetching chapter updates ## [v2.2.2100] + [WebUI: v20260508.01] - 2026-05-08 diff --git a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt index e0748000e..f8c9aaf8e 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/manga/impl/Chapter.kt @@ -287,6 +287,7 @@ object Chapter { this[ChapterTable.isRead] = false this[ChapterTable.isBookmarked] = false this[ChapterTable.isDownloaded] = false + this[ChapterTable.pageCount] = -1 // is recognized chapter number if (chapter.chapterNumber >= 0f && chapter.chapterNumber in deletedChapterNumbers) {