TeamVis Self-Host-Bundle v0.46.1
This commit is contained in:
@@ -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');
|
||||
Reference in New Issue
Block a user