Skip to content

Commit f6a98e0

Browse files
committed
fix: grant tables to postgres with grant option
1 parent 5c8643b commit f6a98e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
do $$
2+
declare
3+
super_user text = coalesce(current_setting('storage.super_user', true), 'postgres');
4+
begin
5+
execute 'grant all on storage.buckets, storage.objects to ' || super_user || ' with grant option';
6+
end $$;

0 commit comments

Comments
 (0)