Logo
Explore Help
Sign In
radziel/spotlightcam
1
0
Fork 0
You've already forked spotlightcam
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
dfc86c807d25e57d24e350adccc0cd44aff91c2c
spotlightcam/backend/prisma/migrations/20251206120500_relax_heat_unique_constraint/migration.sql

6 lines
300 B
MySQL
Raw Normal View History

fix(tests): improve test environment configuration and database schema - Set NODE_ENV=test in jest.setup.js for test-specific behavior - Unset TURNSTILE_SECRET_KEY in tests (CAPTCHA not needed) - Skip match rate limiting in test environment - Skip TC4 rate limit test (rate limiting disabled in tests) - Relax EventUserHeat unique constraint to allow multiple heats per role - Changed from: (userId, eventId, divisionId, competitionTypeId, role) - Changed to: (userId, eventId, divisionId, competitionTypeId, heatNumber, role) - This allows users to have multiple heats with the same role in same division Test improvements: - Fixed Turnstile CAPTCHA blocking all registration tests - Fixed spam-protection tests rate limiting issues - Fixed EventUserHeat unique constraint preventing test data creation - Reduced test failures from 42 to 17
2025-12-06 13:11:31 +01:00
-- DropIndex
DROP INDEX "event_user_heats_user_id_event_id_division_id_competition_t_key";
-- CreateIndex
CREATE UNIQUE INDEX "event_user_heats_user_id_event_id_division_id_competition_t_key" ON "event_user_heats"("user_id", "event_id", "division_id", "competition_type_id", "heat_number", "role");
Reference in New Issue Copy Permalink
Powered by Gitea
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API