Files
thrilltrack-explorer/supabase/migrations/20251111021921_71adb7c9-fcca-42c6-a2b7-0e2733c450cf.sql
gpt-engineer-app[bot] 915a9fe2df Add automated data retention cleanup
Implements edge function, Django tasks, and UI hooks/panels for automatic retention of old metrics, anomalies, alerts, and incidents, plus updates to query keys and monitoring dashboard to reflect data-retention workflows.
2025-11-11 02:21:27 +00:00

7 lines
430 B
SQL

-- Fix security warnings: Set search_path for all retention policy functions
ALTER FUNCTION cleanup_old_metrics(INTEGER) SET search_path = public;
ALTER FUNCTION cleanup_old_anomalies(INTEGER) SET search_path = public;
ALTER FUNCTION cleanup_old_alerts(INTEGER) SET search_path = public;
ALTER FUNCTION cleanup_old_incidents(INTEGER) SET search_path = public;
ALTER FUNCTION run_data_retention_cleanup() SET search_path = public;