diff --git a/supabase/migrations/20260711000011_phase2_triage_rca.sql b/supabase/migrations/20260711000011_phase2_triage_rca.sql index c532cff..d08bc16 100644 --- a/supabase/migrations/20260711000011_phase2_triage_rca.sql +++ b/supabase/migrations/20260711000011_phase2_triage_rca.sql @@ -14,6 +14,7 @@ ALTER TABLE investigations ADD COLUMN IF NOT EXISTS fishbone_categories JSONB; -- Audit log write helper — SECURITY DEFINER so callers cannot bypass RLS +DROP FUNCTION IF EXISTS public.write_audit_log CASCADE; CREATE OR REPLACE FUNCTION public.write_audit_log( p_table_name TEXT, p_record_id UUID,