From 41bead2a07e02033208ae7207dfc9bad832eff13 Mon Sep 17 00:00:00 2001 From: Goon Date: Fri, 12 Jun 2026 18:16:20 +0700 Subject: [PATCH] fix(usage): remove stale team table migration reference --- migrations/000080_usage_event_analytics.up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/000080_usage_event_analytics.up.sql b/migrations/000080_usage_event_analytics.up.sql index 2fb7f6e3..f084890f 100644 --- a/migrations/000080_usage_event_analytics.up.sql +++ b/migrations/000080_usage_event_analytics.up.sql @@ -9,7 +9,7 @@ CREATE TABLE IF NOT EXISTS usage_events ( resource_id TEXT NOT NULL DEFAULT '', source TEXT NOT NULL DEFAULT '', agent_id UUID REFERENCES agents(id) ON DELETE SET NULL, - team_id UUID REFERENCES teams(id) ON DELETE SET NULL, + team_id UUID, trace_id UUID REFERENCES traces(id) ON DELETE SET NULL, span_id UUID REFERENCES spans(id) ON DELETE SET NULL, run_id TEXT NOT NULL DEFAULT '',