Bug: queries reference players.team_id but column doesn't exist #25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Bug
Lineage
Standalone — discovered during incident investigation. Contracts service returning 500s.
Repo
forgejo_admin/westside-contractsWhat Broke
All contract pages return HTTP 500:
column p.team_id does not exist.Code assumes
players.team_id(direct FK) but basketball-api schema usesplayer_teamsjoin table (many-to-many). Affects both page load and signing endpoints.Repro Steps
/contract/{token}URLcolumn p.team_id does not existExpected Behavior
Contract page loads showing player name, team, fee, and signing form.
Environment
harbor.tail5b443a.ts.net/westside-contracts/app:latestAcceptance Criteria
/contract/{token}loads without 500/contract/{token}/signPOST succeedsRelated
project-westside-basketball— project this affectsplayersandplayer_teamstables