gigafibre-fsm/apps/website/supabase/migrations/20260214153423_3c9476ad-8cfd-404c-bb18-62141cfd8cc5.sql
louispaulb 6620652900 merge: import site-web-targo into apps/website/ (4 commits preserved)
Integrates www.gigafibre.ca (React/Vite) into the monorepo.
Full git history accessible via `git log -- apps/website/`.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 08:09:15 -04:00

10 lines
592 B
SQL

-- Create temp-imports bucket for caching decompressed CSVs
INSERT INTO storage.buckets (id, name, public) VALUES ('temp-imports', 'temp-imports', false);
-- Allow service_role (edge functions) full access - no user-facing RLS needed
-- The edge function uses service_role key which bypasses RLS
-- But we add policies for authenticated admin users who may need to clean up
CREATE POLICY "Admins can manage temp imports"
ON storage.objects FOR ALL
USING (bucket_id = 'temp-imports' AND auth.role() = 'authenticated')
WITH CHECK (bucket_id = 'temp-imports' AND auth.role() = 'authenticated');