feat: return role with member
This commit is contained in:
parent
5cb6b1d495
commit
3816af56e3
7 changed files with 59 additions and 41 deletions
5
migrations/2025-07-31-133510_roles_uuid_index/down.sql
Normal file
5
migrations/2025-07-31-133510_roles_uuid_index/down.sql
Normal file
|
@ -0,0 +1,5 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
DROP INDEX roles_guuid_uuid;
|
||||
ALTER TABLE roles DROP CONSTRAINT roles_pkey;
|
||||
CREATE UNIQUE INDEX roles_pkey ON roles (uuid, guild_uuid);
|
||||
ALTER TABLE roles ADD PRIMARY KEY USING INDEX roles_pkey;
|
5
migrations/2025-07-31-133510_roles_uuid_index/up.sql
Normal file
5
migrations/2025-07-31-133510_roles_uuid_index/up.sql
Normal file
|
@ -0,0 +1,5 @@
|
|||
-- Your SQL goes here
|
||||
ALTER TABLE roles DROP CONSTRAINT roles_pkey;
|
||||
CREATE UNIQUE INDEX roles_pkey ON roles (uuid);
|
||||
ALTER TABLE roles ADD PRIMARY KEY USING INDEX roles_pkey;
|
||||
CREATE UNIQUE INDEX roles_guuid_uuid ON roles (uuid, guild_uuid);
|
Loading…
Add table
Add a link
Reference in a new issue