Changeset 0.22.4 (#146)
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
-- v0.22.4: Rate limit tracking, tool health, project files (SQLite).
|
||||
|
||||
-- Rate limit column (SQLite requires full rebuild or default — use default).
|
||||
ALTER TABLE provider_health ADD COLUMN rate_limit_count INTEGER NOT NULL DEFAULT 0;
|
||||
|
||||
-- Tool Health
|
||||
CREATE TABLE IF NOT EXISTS tool_health (
|
||||
id TEXT PRIMARY KEY,
|
||||
tool_name TEXT NOT NULL,
|
||||
window_start TEXT NOT NULL,
|
||||
request_count INTEGER NOT NULL DEFAULT 0,
|
||||
error_count INTEGER NOT NULL DEFAULT 0,
|
||||
total_latency_ms INTEGER NOT NULL DEFAULT 0,
|
||||
max_latency_ms INTEGER NOT NULL DEFAULT 0,
|
||||
last_error TEXT,
|
||||
last_error_at TEXT,
|
||||
updated_at TEXT NOT NULL DEFAULT (datetime('now')),
|
||||
UNIQUE (tool_name, window_start)
|
||||
);
|
||||
|
||||
-- Project Files
|
||||
ALTER TABLE attachments ADD COLUMN project_id TEXT REFERENCES projects(id) ON DELETE CASCADE;
|
||||
Reference in New Issue
Block a user