howmuch/migrations/20241018175610_participation_add_unique_keys.postgres.up.sql

3 lines
93 B
MySQL
Raw Normal View History

2024-10-18 19:15:27 +00:00
ALTER TABLE "participation"
ADD CONSTRAINT unique_user_event UNIQUE ("user_id", "event_id");