Skip to content

Evidence Metadata Migrations

Huzefaaa2 edited this page May 17, 2026 · 3 revisions

Evidence Metadata Migrations

CAVRA supports SQLite-backed evidence metadata search for self-hosted pilots.

Migration:

migrations/sqlite/001_evidence_metadata.sql
migrations/sqlite/002_approval_router.sql

Apply:

cavra evidence migrate --sqlite .cavra/evidence/metadata.db

The CLI records applied migration filenames in schema_migrations, so deployment automation can run the command repeatedly.

Run API:

CAVRA_EVIDENCE_METADATA_DB=.cavra/evidence/metadata.db uvicorn cavra.api:app --reload

Search filters: session_id, signer, min_blocked, has_approvals, limit, and offset.

Clone this wiki locally