Books — bump bookDataVersion to 4 to force re-seed

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) <noreply@anthropic.com>
This commit is contained in:
Trey T
2026-05-13 23:09:00 -05:00
parent 0b7d4a73ad
commit d49eb38a6d
+1 -1
View File
@@ -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?