feat(vvt): Go-Features nach Python portieren (Source of Truth)
Review-Daten (last_reviewed_at, next_review_at), created_by, DSFA-Link, CSV-Export mit Semikolon-Trennung, overdue_review_count in Stats. Go-VVT-Handler als DEPRECATED markiert. 32 Tests bestanden. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
14
backend-compliance/migrations/033_vvt_consolidation.sql
Normal file
14
backend-compliance/migrations/033_vvt_consolidation.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
-- 033_vvt_consolidation.sql
|
||||
-- Portiert Go-exklusive VVT-Features nach Python (Source of Truth)
|
||||
-- P0: Review-Daten, created_by | P1: DSFA-Link
|
||||
|
||||
ALTER TABLE compliance_vvt_activities
|
||||
ADD COLUMN IF NOT EXISTS last_reviewed_at TIMESTAMPTZ,
|
||||
ADD COLUMN IF NOT EXISTS next_review_at TIMESTAMPTZ,
|
||||
ADD COLUMN IF NOT EXISTS created_by VARCHAR(200) DEFAULT 'system',
|
||||
ADD COLUMN IF NOT EXISTS dsfa_id UUID;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_vvt_activities_dsfa
|
||||
ON compliance_vvt_activities(dsfa_id) WHERE dsfa_id IS NOT NULL;
|
||||
CREATE INDEX IF NOT EXISTS idx_vvt_activities_next_review
|
||||
ON compliance_vvt_activities(next_review_at) WHERE next_review_at IS NOT NULL;
|
||||
Reference in New Issue
Block a user