fix: drop write_audit_log before recreate to handle existing function with different param names
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user