fix: make (user_uuid, guild_uuid) unique in members
This commit is contained in:
parent
284d5e45fa
commit
671fc42555
2 changed files with 4 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
ALTER TABLE guild_members DROP CONSTRAINT guild_members_user_uuid_guild_uuid_key;
|
2
migrations/2025-07-13-155008_unique_guild_members/up.sql
Normal file
2
migrations/2025-07-13-155008_unique_guild_members/up.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
-- Your SQL goes here
|
||||
ALTER TABLE guild_members ADD UNIQUE (user_uuid, guild_uuid)
|
Loading…
Add table
Add a link
Reference in a new issue