Skip to content

Sync: dev to main - #614

Merged
aamoghS merged 3 commits into
mainfrom
dev
Nov 14, 2026
Merged

aamoghS merged 3 commits into
mainfrom
dev

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Automated PR tracking changes from dev into main.


Note

High Risk
Irreversible production DDL with a strict run-before-deploy order; getting it wrong can block all future drizzle-kit push until 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 legacy bootcamp_material and judge_queue (schema, relations, and @query/db export). Counts stay derived at read time via services/derived-counts.ts; events.create now returns currentCheckIns: 0 for the QR modal, and hackathon list/get types explicitly include currentParticipants.

Ships packages/db/sql/2026-11-drop-retired.sql (run on production before deploy) and documents the drop workflow in docs/packages/db.md. Adds read-only preflight-2026-11-constraints.sql for upcoming constraint work. Docs and derived-counts.db.test.ts no 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.

aamoghS and others added 3 commits November 14, 2026 17:38
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.
@github-actions

Copy link
Copy Markdown
Contributor Author

@greptileai

@aamoghS aamoghS reopened this Nov 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@github-actions

Copy link
Copy Markdown
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

@github-actions

Copy link
Copy Markdown
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

@aamoghS
aamoghS merged commit f25b3fd into main Nov 14, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant