mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 12:31:26 -05:00
Fix PostgREST schema cache
This commit is contained in:
@@ -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';
|
||||||
Reference in New Issue
Block a user