Skip to content

Commit 51d753c

Browse files
committed
fix migration: RSL - allow cron to insert data
1 parent 0a83cec commit 51d753c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-- fix of the previous migration: allow authenticated users (cron) to save to the database
2+
3+
DROP POLICY IF EXISTS "insert_auth" ON public.listened;
4+
CREATE POLICY "insert_auth"
5+
ON public.listened
6+
FOR INSERT
7+
TO authenticated
8+
WITH CHECK (true);
9+

0 commit comments

Comments
 (0)