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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user