gigafibre-fsm/apps/website/supabase/migrations/20260212161055_c60ac228-2b45-4eb5-87a0-6d3780e2eb4c.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

11 lines
375 B
SQL

-- Remove the permissive public INSERT policy
DROP POLICY IF EXISTS "Anyone can insert search logs" ON public.search_logs;
-- Add a restrictive policy that blocks anonymous/authenticated inserts
-- The edge function uses service_role which bypasses RLS entirely
CREATE POLICY "Block direct inserts on search logs"
ON public.search_logs
FOR INSERT
WITH CHECK (false);