TeamVis Self-Host-Bundle v0.31.0
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
-- Wenn ein/e Mitarbeiter:in das Unternehmen verlässt, wird die Karte
|
||||
-- typischerweise auf active=false gesetzt. Bisher: 404. Neu: optionale
|
||||
-- Nachfolger-Zuordnung — Besucher der alten URL bekommen freundlich
|
||||
-- die neue Ansprechperson angezeigt.
|
||||
-- ====================================================================
|
||||
-- successor_employee_id: Nachfolger:in (eigene Karte)
|
||||
-- successor_note: freier Text falls keine 1:1-Nachfolge
|
||||
-- (z.B. "Bitte wenden Sie sich an die Zentrale.")
|
||||
|
||||
alter table public.employees
|
||||
add column if not exists successor_employee_id uuid
|
||||
references public.employees(id) on delete set null,
|
||||
add column if not exists successor_note text;
|
||||
|
||||
create index if not exists employees_successor_employee_id_idx
|
||||
on public.employees (successor_employee_id);
|
||||
|
||||
grant select (successor_employee_id, successor_note)
|
||||
on public.employees to anon;
|
||||
Reference in New Issue
Block a user