From 398603c75a094e28122c5ccdced5b82badc7fbfb Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Mon, 22 Dec 2025 13:19:05 -0600 Subject: [PATCH] fix(db): add missing journal entries for migrations 0041-0042 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The classroom system migration files (0041_classroom-system.sql and 0042_classroom-system-indexes.sql) were created manually without using drizzle-kit generate, so they weren't registered in _journal.json. This caused drizzle to skip these migrations, resulting in: - No parent_child table - No family_code column on players - No classrooms/enrollments tables Fixes production error on /practice page. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- apps/web/drizzle/meta/_journal.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/apps/web/drizzle/meta/_journal.json b/apps/web/drizzle/meta/_journal.json index e631fe2c..cba133fc 100644 --- a/apps/web/drizzle/meta/_journal.json +++ b/apps/web/drizzle/meta/_journal.json @@ -288,6 +288,20 @@ "when": 1766320890578, "tag": "0040_rename_last_help_level_to_last_had_help", "breakpoints": true + }, + { + "idx": 41, + "version": "6", + "when": 1766404380000, + "tag": "0041_classroom-system", + "breakpoints": true + }, + { + "idx": 42, + "version": "6", + "when": 1766406120000, + "tag": "0042_classroom-system-indexes", + "breakpoints": true } ] }