Skip to content

Commit db4c4a3

Browse files
authored
Merge pull request #1118 from trycompai/mariano/repair-stripe-endpoint
[dev] [Marfuen] mariano/repair-stripe-endpoint
2 parents 1f8b158 + bc4057f commit db4c4a3

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)