Commit 53cd642
fix(demo-tamper): ON CONFLICT DO NOTHING instead of INSERT OR IGNORE
Prod ships Postgres; `INSERT OR IGNORE` is SQLite-only and raised a
syntax error on the first /demo/tamper hit, which surfaced as a
raw 500. Swapped for `ON CONFLICT (entry_id) DO NOTHING` which works
identically on both dialects (SQLite 3.24+ + Postgres 9.5+).
Verified the audit_log PK is on entry_id so the conflict target is
valid. Re-ran tests/test_demo_tamper.py — 8/8 still green on the
local SQLite path.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 504ce40 commit 53cd642
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
135 | 138 | | |
136 | | - | |
| 139 | + | |
137 | 140 | | |
138 | 141 | | |
139 | | - | |
| 142 | + | |
| 143 | + | |
140 | 144 | | |
141 | 145 | | |
142 | 146 | | |
| |||
0 commit comments