Repository navigation
Feature: refactor/db-drop-retired to dev - #613
Merged
Merged
Conversation
Sync: dev to main
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.
Contributor
Author
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
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.
Contributor
Author
|
Visit the preview URL for this PR (updated for commit 0411338): https://hacklyticss2026--pr-613-szdeyapc.web.app (expires Sat, 21 Nov 2026 22:42:37 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 5d238be33273095766c18a8339b7b0c47de8a950 |
Contributor
Author
|
Visit the preview URL for this PR (updated for commit 0411338): https://hacklytics2027--pr-613-d3f7alqu.web.app (expires Sat, 21 Nov 2026 22:42:38 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c48ba34db61581e25fe2978355160b5eefe0e83f |
aamoghS
marked this pull request as ready for review
November 14, 2026 22:43
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
refactor/db-drop-retiredintodev.Note
High Risk
Irreversible production DROPs must run in the documented order before deploy; a mistake can block all future
drizzle-kit pushor remove historical legacy judging/bootcamp data.Overview
Removes retired schema from Drizzle and ships a one-shot production script so deploys can stay push-only without blocking on interactive DROP prompts.
Schema removed from declarations: stored counters
event.current_check_ins,hackathon.current_participants,hackathon_team.current_members;event.members_only;hackathon.judging_backend; the legacybootcamp_materialtable; and pool-judgingjudge_queue(relations injudge.tsgo away too).@query/dbno longer exportsbootcampMaterials.Operational DDL:
packages/db/sql/2026-11-drop-retired.sqlmust run on production before this deploy; docs inpackages/db.mdspell out that order. A read-onlypreflight-2026-11-constraints.sqlis added to count rows that would break a future constraint push.API/docs alignment: Feature docs now state counts come only from
derived-countsand that check-in is open to all signed-in users.events.createreturnscurrentCheckIns: 0for the QR UI; hackathon list/getById types include derivedcurrentParticipants. Integration tests no longer seed fake counter columns.Reviewed by Cursor Bugbot for commit 0411338. Bugbot is set up for automated code reviews on this repo. Configure here.