From 5187ad7be712963a1f7f424ce5954fbb27f4c597 Mon Sep 17 00:00:00 2001 From: Thomas Stallinger Date: Wed, 7 Oct 2026 14:12:18 +0200 Subject: [PATCH] Migration 0053: Ziel-OE fuer Enrollment-Sessions Co-Authored-By: Claude Opus 5.5 --- migrations/0053_enrollment_ziel_oe.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 migrations/0053_enrollment_ziel_oe.sql diff --git a/migrations/0053_enrollment_ziel_oe.sql b/migrations/0053_enrollment_ziel_oe.sql new file mode 100644 index 0000000..4b0dd59 --- /dev/null +++ b/migrations/0053_enrollment_ziel_oe.sql @@ -0,0 +1,10 @@ +BEGIN; + +-- Workspace-Creator neu, Schritt F (07.10.2026): Ein Installationsmedium +-- installiert in eine Ziel-OE. Aktivierte Geräte landen dort und bekommen den +-- Workspace dieser OE (ADR-0038). NULL = wie bisher Standard-OE der +-- Organisation. +ALTER TABLE enrollment_sessions ADD COLUMN ziel_oe_id UUID + REFERENCES organisationseinheiten(id) ON DELETE SET NULL; + +COMMIT;