Files
llmgw/internal/store/migrations/postgres/0018_usage_guard.sql

9 lines
508 B
SQL

-- Ported from the SQLite migration of the same number.
-- What a guard decided about a request: the action (flagged, redacted,
-- blocked), the policy and category it was decided by, and how long it took.
-- Names only, never the text.
ALTER TABLE usage ADD COLUMN guard_action TEXT NOT NULL DEFAULT '';
ALTER TABLE usage ADD COLUMN guard_policy TEXT NOT NULL DEFAULT '';
ALTER TABLE usage ADD COLUMN guard_category TEXT NOT NULL DEFAULT '';
ALTER TABLE usage ADD COLUMN guard_ms BIGINT NOT NULL DEFAULT 0;