-- Migration 108: Script- und Cookie-Tracking fuer Banner-Consents -- Erfasst welche Scripts blockiert/freigegeben und welche Cookies gesetzt wurden. -- Alle Felder JSONB + nullable → backward-compatible. -- Scripts die VOR Consent blockiert waren ALTER TABLE compliance_banner_consents ADD COLUMN IF NOT EXISTS scripts_blocked JSONB DEFAULT '[]'::jsonb; -- [{"src": "https://www.googletagmanager.com/gtag/js", "category": "analytics"}] -- Scripts die NACH Consent freigegeben wurden ALTER TABLE compliance_banner_consents ADD COLUMN IF NOT EXISTS scripts_released JSONB DEFAULT '[]'::jsonb; -- [{"src": "https://www.googletagmanager.com/gtag/js", "category": "analytics"}] -- Cookies die NACH Consent gesetzt wurden ALTER TABLE compliance_banner_consents ADD COLUMN IF NOT EXISTS cookies_set JSONB DEFAULT '[]'::jsonb; -- [{"name": "_ga", "domain": ".breakpilot.ai", "expiry_days": 730, "category": "analytics"}]