mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add RLS permissions on the label table
This commit is contained in:
parent
1c4ca835d3
commit
57a45adb5d
2 changed files with 20 additions and 0 deletions
11
packages/db/migrations/0078.do.grant_update_rls_on_labels.sql
Executable file
11
packages/db/migrations/0078.do.grant_update_rls_on_labels.sql
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
-- Type: DO
|
||||
-- Name: grant_update_rls_on_labels
|
||||
-- Description: Add RLS update permission to the labels table
|
||||
|
||||
BEGIN;
|
||||
|
||||
CREATE POLICY update_labels on omnivore.labels
|
||||
FOR UPDATE TO omnivore_user
|
||||
WITH CHECK (true);
|
||||
|
||||
COMMIT;
|
||||
9
packages/db/migrations/0078.undo.grant_update_rls_on_labels.sql
Executable file
9
packages/db/migrations/0078.undo.grant_update_rls_on_labels.sql
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
-- Type: UNDO
|
||||
-- Name: grant_update_rls_on_labels
|
||||
-- Description: Add RLS update permission to the labels table
|
||||
|
||||
BEGIN;
|
||||
|
||||
DROP POLICY update_labels on omnivore.labels ;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in a new issue