Files
breakpilot-compliance/backend-compliance/migrations/151_iace_parent_project_id.sql
T
Benjamin_Boenisch bb6139df3e
CI / detect-changes (push) Successful in 18s
CI / branch-name (push) Has been skipped
CI / guardrail-integrity (push) Has been skipped
CI / secret-scan (push) Has been skipped
CI / dep-audit (push) Has been skipped
CI / sbom-scan (push) Has been skipped
CI / build-sha-integrity (push) Failing after 8s
CI / validate-canonical-controls (push) Successful in 15s
CI / loc-budget (push) Failing after 18s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / nodejs-build (push) Successful in 2m25s
CI / test-go (push) Failing after 41s
CI / iace-gt-coverage (push) Successful in 26s
CI / test-python-backend (push) Successful in 35s
CI / test-python-document-crawler (push) Successful in 23s
CI / test-python-dsms-gateway (push) Successful in 21s
MC mapping: defensive route + MinIO overridable + iace migration 151 (#27)
MC mapping deploy: defensive route + MinIO overridable + Migration 151 + loc-exception [migration-approved] [guardrail-change]
2026-06-10 11:54:48 +00:00

17 lines
655 B
SQL

-- Migration 151: iace_projects.parent_project_id (Variantenmanagement)
-- Die Spalte wurde urspruenglich ad-hoc auf die DBs gebracht (Commit 8682522,
-- 2026-05-09) OHNE Repo-Migration -- dadurch ging sie bei DB-Wechseln/Resets
-- verloren. Diese Migration macht sie reproduzierbar. Code erwartet
-- *uuid.UUID (nullable). Strikt add-only. [migration-approved]
SET search_path TO compliance, public;
DO $$
BEGIN
IF EXISTS (SELECT 1 FROM information_schema.tables
WHERE table_schema='compliance' AND table_name='iace_projects') THEN
ALTER TABLE iace_projects
ADD COLUMN IF NOT EXISTS parent_project_id UUID;
END IF;
END $$;