Repository navigation
Conversation
Nothing reads or writes event.current_check_ins, event.members_only, hackathon_team.current_members, hackathon.current_participants, hackathon.judging_backend, bootcamp_material or judge_queue any more. The schema stops declaring them, and packages/db/sql/2026-11-drop-retired.sql drops them. That file must run against production before this deploys: push cannot drop in a deploy, and an undeclared-but-present column stops every later push at the data-loss prompt. docs/packages/db.md describes the order. Also types the derived counts on hackathon list/getById and events.create, which still declared the raw row.
Counts the rows that would break each proposed constraint (unique email, same-edition composite FKs, range CHECKs), so the next change adds only the ones with zero violations. Runs in a read-only transaction.
Feature: refactor/db-drop-retired to dev
Contributor
Author
Contributor
Author
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Contributor
Author
|
Visit the preview URL for this PR (updated for commit b90911f): https://hacklyticss2026--pr-614-fixdflrv.web.app (expires Sat, 21 Nov 2026 22:46:18 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 5d238be33273095766c18a8339b7b0c47de8a950 |
Contributor
Author
|
Visit the preview URL for this PR (updated for commit b90911f): https://hacklytics2027--pr-614-tvxvsncr.web.app (expires Sat, 21 Nov 2026 22:46:20 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c48ba34db61581e25fe2978355160b5eefe0e83f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated PR tracking changes from
devintomain.Note
High Risk
Irreversible production DDL with a strict run-before-deploy order; getting it wrong can block all future
drizzle-kit pushuntil manual cleanup.Overview
Removes stored counter columns and other retired schema from Drizzle (
current_check_ins,current_participants,current_members,members_only,judging_backend) and drops legacybootcamp_materialandjudge_queue(schema, relations, and@query/dbexport). Counts stay derived at read time viaservices/derived-counts.ts;events.createnow returnscurrentCheckIns: 0for the QR modal, and hackathon list/get types explicitly includecurrentParticipants.Ships
packages/db/sql/2026-11-drop-retired.sql(run on production before deploy) and documents the drop workflow indocs/packages/db.md. Adds read-onlypreflight-2026-11-constraints.sqlfor upcoming constraint work. Docs andderived-counts.db.test.tsno longer assume fake stored counters.Reviewed by Cursor Bugbot for commit b90911f. Bugbot is set up for automated code reviews on this repo. Configure here.