TeamVis Self-Host-Bundle v0.46.1

This commit is contained in:
TeamVis Release
2026-08-05 08:44:10 +02:00
parent 243713fe74
commit f53579d3a4
12 changed files with 295 additions and 3 deletions
@@ -0,0 +1,16 @@
-- ====================================================================
-- 0065_lead_source_kind_reception — Empfangs-Leads korrekt kennzeichnen
-- ====================================================================
-- `createLead` (öffentliches Lead-Formular UND Empfangstresen) hat
-- source_kind nie gesetzt, also griff der Default 'form' aus Migration 0037.
-- In der Lead-Inbox erschienen Besucher dadurch als „Formular", obwohl der
-- Wert 'reception' im Schema vorgesehen ist. Der Code setzt die Spalte ab
-- sofort mit; diese Migration zieht die Bestandsdaten nach.
--
-- Kriterium ist dieselbe Quelle, an der die Tabelle Empfang und Lead-Capture
-- ohnehin unterscheidet (siehe Kopfkommentar in lib/leads.ts).
update public.card_leads
set source_kind = 'reception'
where source_kind = 'form'
and source_url in ('/empfang', '/admin/empfang');