Skip to content

Commit 57d86e1

Browse files
authored
Merge pull request #1119 from trycompai/main
[comp] Production Deploy
2 parents 0033f86 + db4c4a3 commit 57d86e1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • packages/db/prisma/migrations/20250711204234_add_read_permission_for_where_clause_on_retool_role
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
DO $$
2+
BEGIN
3+
IF EXISTS (SELECT 1 FROM pg_roles WHERE rolname = 'retool_write') THEN
4+
-- Grant SELECT permission (needed for WHERE clause)
5+
GRANT SELECT ON "Organization" TO retool_write;
6+
END IF;
7+
END
8+
$$;

0 commit comments

Comments
 (0)