forked from gorb/backend
feat: implement is_above for roles and reuse same functions from channels!
This commit is contained in:
parent
39d01bb0d0
commit
1aa38631b8
8 changed files with 81 additions and 41 deletions
3
migrations/2025-05-27-105059_redo_role_ordering/down.sql
Normal file
3
migrations/2025-05-27-105059_redo_role_ordering/down.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
-- This file should undo anything in `up.sql`
|
||||
ALTER TABLE roles ADD COLUMN position int NOT NULL DEFAULT 0;
|
||||
ALTER TABLE roles DROP COLUMN is_above;
|
3
migrations/2025-05-27-105059_redo_role_ordering/up.sql
Normal file
3
migrations/2025-05-27-105059_redo_role_ordering/up.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
-- Your SQL goes here
|
||||
ALTER TABLE roles DROP COLUMN position;
|
||||
ALTER TABLE roles ADD COLUMN is_above UUID UNIQUE REFERENCES roles(uuid) DEFAULT NULL;
|
Loading…
Add table
Add a link
Reference in a new issue