All checks were successful
🚀 Deploy / 🧪 Test (pull_request) Successful in 1m31s
🚀 Deploy / ʦ TypeScript (pull_request) Successful in 1m19s
🚀 Deploy / 🔍 Lint (pull_request) Successful in 48s
🚀 Deploy / 🐳 Build (pull_request) Has been skipped
🚀 Deploy / 🚀 Deploy (pull_request) Has been skipped
- Add findTeamByNameInSeason (exact case-insensitive match via lower()) to the team model - Validate uniqueness in the user-facing team settings rename action - Validate uniqueness in admin assign-owner and remove-owner paths that auto-generate names - Reject whitespace-only team names that would trim to an empty string - Add DB-level unique index on (season_id, lower(name)) to close the TOCTOU race Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 line
No EOL
121 B
SQL
1 line
No EOL
121 B
SQL
CREATE UNIQUE INDEX IF NOT EXISTS "teams_season_id_lower_name_unique" ON "teams" USING btree ("season_id",lower("name")); |