Files
sub2api/backend/migrations/182_prompt_audit_full_prompt.sql
T

6 lines
311 B
SQL
Raw Normal View History

-- Retain the full (unredacted) prompt text on audit events so admins can
-- review the exact content that triggered a finding. Scoped to events only:
-- transient processing jobs keep storing redacted metadata.
ALTER TABLE prompt_audit_events
ADD COLUMN IF NOT EXISTS full_prompt TEXT NOT NULL DEFAULT '';