| 1 | -- Unexpected server errors (lib/server-errors.ts): the newest 500 answers with a 5xx status, for |
| 2 | -- site administrators. `id` is the request id the answer carried. No request bodies, query |
| 3 | -- strings or headers are kept. |
| 4 | CREATE TABLE IF NOT EXISTS server_errors ( |
| 5 | id TEXT PRIMARY KEY, |
| 6 | at TEXT NOT NULL, |
| 7 | method TEXT NOT NULL, |
| 8 | route TEXT, |
| 9 | path TEXT NOT NULL, |
| 10 | status INTEGER NOT NULL, |
| 11 | message TEXT NOT NULL, |
| 12 | stack TEXT |
| 13 | ); |
| 14 | CREATE INDEX IF NOT EXISTS server_errors_at ON server_errors(at); |