gigafibre-fsm/apps/website/supabase/migrations/20260215014332_02acdb9e-7d21-4766-864b-5d79970e832a.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

15 lines
423 B
PL/PgSQL

-- Create a function that allows executing arbitrary SQL (service role only via edge functions)
CREATE OR REPLACE FUNCTION public.exec_sql(query text)
RETURNS void
LANGUAGE plpgsql
SECURITY DEFINER
SET search_path = public
AS $$
BEGIN
EXECUTE query;
END;
$$;
-- Add indexes_dropped column to import_jobs to track index state
ALTER TABLE public.import_jobs ADD COLUMN IF NOT EXISTS indexes_dropped boolean DEFAULT false;