docs(ops): cleanup must run as RLS-bypassing role, stop on error

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-14 11:18:20 +08:00
co-authored by Claude Sonnet 5.5
parent 10f22b5cd5
commit 275a1ef3e9
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -3,6 +3,8 @@
-- psql -p 5433 -d ims -v mode=run -f cleanup-test-data.sql (deletes, one transaction)
-- Evidence files on disk are NOT touched (5-year retention).
\set ON_ERROR_STOP on
\if :{?mode}
\else
\echo 'Set -v mode=dryrun or -v mode=run'