Yaltopia-FIFA/supabase/migrations/20250524000005_storage.sql
Kirubel-Kibru-Yaltopia 89440985f1
Some checks failed
Deploy to Cloudflare Workers / deploy (push) Has been cancelled
x
2026-05-24 21:46:10 +03:00

16 lines
520 B
SQL

-- Team logos storage bucket
INSERT INTO storage.buckets (id, name, public)
VALUES ('team-logos', 'team-logos', true)
ON CONFLICT (id) DO NOTHING;
CREATE POLICY team_logos_public_read ON storage.objects
FOR SELECT USING (bucket_id = 'team-logos');
CREATE POLICY team_logos_authenticated_upload ON storage.objects
FOR INSERT TO authenticated
WITH CHECK (bucket_id = 'team-logos');
CREATE POLICY team_logos_authenticated_update ON storage.objects
FOR UPDATE TO authenticated
USING (bucket_id = 'team-logos');