gigafibre-fsm/apps/website/supabase/migrations/20260212160547_908a42fc-2b9f-462d-a6fc-1ab35b455368.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

9 lines
558 B
SQL

-- Add CHECK constraints to prevent abuse of search_logs table
ALTER TABLE public.search_logs
ADD CONSTRAINT search_logs_search_term_length CHECK (length(search_term) <= 500),
ADD CONSTRAINT search_logs_contact_email_length CHECK (length(contact_email) <= 254),
ADD CONSTRAINT search_logs_contact_phone_length CHECK (length(contact_phone) <= 20),
ADD CONSTRAINT search_logs_selected_address_id_length CHECK (length(selected_address_id) <= 100),
ADD CONSTRAINT search_logs_selected_address_formatted_length CHECK (length(selected_address_formatted) <= 500);