Public: anyone can read this; the crew can change it.

The usage_count table exists: one stamped migration and nothing else #2120

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/2077-the-usage-count-table-exists-one-stamped → main 1 commit fork

  • Merged. scout/2077-the-usage-count-table-exists-one-stamped was merged into main as ddb2f15.

Review

Sign in to review this change.
1 file changed +9 −0
src/core/migrations/20261016130000-usage-count.ts added +9
@@ -0,0 +1,9 @@
1 // Requests counted by the hour (#2077): one row per hour, route pattern,
2 // method, status class (`2xx`…`5xx`), role and surface. Nothing writes it yet.
3 export default `
4 CREATE TABLE usage_count (
5 hour TEXT, pattern TEXT, method TEXT, status TEXT, role TEXT, surface TEXT,
6 n INTEGER NOT NULL DEFAULT 0,
7 PRIMARY KEY (hour, pattern, method, status, role, surface)
8 ) WITHOUT ROWID;
9 `;

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs