diff --git a/migrations/tenant/0038-grant-with-grant-option.sql b/migrations/tenant/0038-grant-with-grant-option.sql new file mode 100644 index 00000000..e97542a1 --- /dev/null +++ b/migrations/tenant/0038-grant-with-grant-option.sql @@ -0,0 +1,6 @@ +do $$ +declare + super_user text = coalesce(current_setting('storage.super_user', true), 'postgres'); +begin + execute 'grant all on storage.buckets, storage.objects to ' || super_user || ' with grant option'; +end $$;