Skip to content

Sync: dev to main - #451

Merged
aamoghS merged 2 commits into
mainfrom
dev
Oct 1, 2026
Merged

aamoghS merged 2 commits into
mainfrom
dev

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Automated PR tracking changes from dev into main.


Note

Low Risk
Schema declaration change only; DB behavior for uniqueness should be equivalent, with lower risk of failed automated migrations.

Overview
Replaces the unique_bootcamp_session table constraint on (bootcamp_week, bootcamp_term) with a uniqueIndex named event_bootcamp_session_idx, keeping the same rule: one bootcamp session per week per term (null pairs still don’t collide).

This is a Drizzle/Neon deploy fix: drizzle-kit push was mis-reading unique constraint column order, attempting to re-add the constraint, and blocking non-interactive deploys. Unique indexes preserve column order on introspection, so pushes should stop fighting the schema.

Reviewed by Cursor Bugbot for commit 67efd80. Bugbot is set up for automated code reviews on this repo. Configure here.

aamoghS and others added 2 commits October 1, 2026 16:00
drizzle-kit introspects unique constraint columns with no ORDER BY.
On Neon it read unique_bootcamp_session as (term, week), diffed it
against the schema's (week, term), and tried to re-add it. Adding a
unique constraint to a non-empty table opens a TTY prompt, which
killed the App Hosting build before withdrawn_by_admin_at was pushed.

Index columns are introspected by position, so a unique index with
the same columns and null semantics diffs cleanly. Verified on a
restored prod dump: push applies without a prompt, a second push is
clean, and db:check passes.
Feature: fix/bootcamp-session-index to dev
@github-actions
github-actions Bot requested a review from aamoghS as a code owner October 1, 2026 20:13
@aamoghS
aamoghS merged commit f150c8b into main Oct 1, 2026
8 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