diff --git a/supabase/migrations/20251030021118_da2efd01-22e8-42e0-aae9-7cc5c1aae971.sql b/supabase/migrations/20251030021118_da2efd01-22e8-42e0-aae9-7cc5c1aae971.sql new file mode 100644 index 00000000..f71c527b --- /dev/null +++ b/supabase/migrations/20251030021118_da2efd01-22e8-42e0-aae9-7cc5c1aae971.sql @@ -0,0 +1,8 @@ +-- Force PostgREST schema cache refresh for get_my_sessions function +-- This migration ensures PostgREST recognizes the function in its REST API + +-- Add comment to function (forces schema change detection) +COMMENT ON FUNCTION public.get_my_sessions() IS 'Returns current user''s active sessions with hashed IP addresses for security'; + +-- Notify PostgREST to reload schema cache +NOTIFY pgrst, 'reload schema'; \ No newline at end of file