@davoodmehraban89 / VELYQOR / commits / e06495d
Fork 0

Intelligence, Advanced Charting & Trading Platform

fix(db): repair dollar quoting of consent-aware PL/pgSQL claim function

davoodmehraban89 committed Oct 22, 2026 at 23:49 UTC e06495dabd35eacbed20a4dfeea6c56c28cb369f
1 file changed +2 -2
db/migrations/0006_alert_runtime_atomic.sql
+2 -2
@@ -212,7 +212,7 @@ CREATE FUNCTION public.alert_notification_claim_consented(
212 LANGUAGE plpgsql
213 SECURITY INVOKER
214 SET search_path = pg_catalog, public
215 -AS $
215 +AS $alert_claim$
216 DECLARE
217 v_claim RECORD;
218 v_authorized BOOLEAN;
@@ -267,7 +267,7 @@ BEGIN
267 attempt_number := v_claim.attempt_number;
268 RETURN NEXT;
269 END;
270 -$;
270 +$alert_claim$;
271
272 -- Persisted state is owned by backend service only. No default browser/anon
273 -- SELECT/INSERT/UPDATE or function EXECUTE grants are introduced.