From d49eb38a6df938d2c52ad27b14edd43f5ea7e505 Mon Sep 17 00:00:00 2001 From: Trey T Date: Wed, 13 May 2026 23:09:00 -0500 Subject: [PATCH] =?UTF-8?q?Books=20=E2=80=94=20bump=20bookDataVersion=20to?= =?UTF-8?q?=204=20to=20force=20re-seed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A device install was showing the Books row but no books inside. The seed code is intact (bundle resource present, schema registered, explicit-slug fallback in place). Bumping the version flips versionCurrent to false on every existing install, forcing refreshBooksDataIfNeeded to wipe + re-seed on next launch. The diagnostic prints added earlier ([DataLoader] bundledBookJSONURLs found N files / Book seeding complete) will tell us if it still fails this time. Co-Authored-By: Claude Opus 4.7 (1M context) --- Conjuga/Conjuga/Services/DataLoader.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Conjuga/Conjuga/Services/DataLoader.swift b/Conjuga/Conjuga/Services/DataLoader.swift index e1d8bf6..0ca8762 100644 --- a/Conjuga/Conjuga/Services/DataLoader.swift +++ b/Conjuga/Conjuga/Services/DataLoader.swift @@ -9,7 +9,7 @@ actor DataLoader { static let textbookDataVersion = 14 static let textbookDataKey = "textbookDataVersion" - static let bookDataVersion = 3 // bump: robust bundle lookup with explicit-slug fallback + static let bookDataVersion = 4 // bump: force re-seed for installs where books didn't persist static let bookDataKey = "bookDataVersion" /// Quick check: does the DB need seeding or course data refresh?