Skip to content

fix: change shift_covers.schedule_id from serial to integer#193

Open
jakebromberg wants to merge 1 commit intomainfrom
fix/18-schedule-id-type
Open

fix: change shift_covers.schedule_id from serial to integer#193
jakebromberg wants to merge 1 commit intomainfrom
fix/18-schedule-id-type

Conversation

@jakebromberg
Copy link
Member

Summary

  • shift_covers.schedule_id used serial (auto-increment) instead of integer for a foreign key column
  • Inserts without explicit schedule_id would get sequence-generated values rather than failing

Test plan

  • Schema assertion test verifying column is not serial

Made with Cursor

FK columns should not auto-increment. Using serial meant inserts
without explicit schedule_id would get sequence-generated values
that may not reference valid schedule rows.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jakebromberg jakebromberg force-pushed the fix/18-schedule-id-type branch from 0d21961 to 4cf6824 Compare February 27, 2026 05:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant