From 5b5bd4d62ebcd16906442dcd0a7215b0fe54ac78 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 12 Nov 2025 02:04:59 +0000 Subject: [PATCH] Fix analyze_data_completeness search_path Update the analyze_data_completeness function to set search_path = public to address security linter warning and ensure consistent function execution without elevated schema access. No behavioral changes beyond security context. --- .../20251112020447_3e5b866b-ce33-4cfe-9d69-8cc671963d44.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 supabase/migrations/20251112020447_3e5b866b-ce33-4cfe-9d69-8cc671963d44.sql diff --git a/supabase/migrations/20251112020447_3e5b866b-ce33-4cfe-9d69-8cc671963d44.sql b/supabase/migrations/20251112020447_3e5b866b-ce33-4cfe-9d69-8cc671963d44.sql new file mode 100644 index 00000000..bbe752e5 --- /dev/null +++ b/supabase/migrations/20251112020447_3e5b866b-ce33-4cfe-9d69-8cc671963d44.sql @@ -0,0 +1,4 @@ +-- Fix security linter warning: Set search_path for analyze_data_completeness function +-- This prevents potential security issues from search_path manipulation + +ALTER FUNCTION analyze_data_completeness() SET search_path = public; \ No newline at end of file