From db09665d50fcaefa456664b2aca8e4563b44ca4d Mon Sep 17 00:00:00 2001 From: WcaleNieWolny Date: Mon, 18 May 2026 11:10:33 +0200 Subject: [PATCH] feat(db): add ai_analyzed flag to build_requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a boolean column with default FALSE used by the upcoming AI build analytics feature for one-analysis-per-job idempotency. Backward-compatible schema change — existing rows get the default; no app code on main reads or writes this column yet. The application code that consumes this column lands in PR #2284 (AI build analytics feature). This migration ships separately so the schema change can be reviewed and applied independently from the larger feature. --- .../20260518120000_add_ai_analyzed_to_build_requests.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 supabase/migrations/20260518120000_add_ai_analyzed_to_build_requests.sql diff --git a/supabase/migrations/20260518120000_add_ai_analyzed_to_build_requests.sql b/supabase/migrations/20260518120000_add_ai_analyzed_to_build_requests.sql new file mode 100644 index 0000000000..6477da3270 --- /dev/null +++ b/supabase/migrations/20260518120000_add_ai_analyzed_to_build_requests.sql @@ -0,0 +1,5 @@ +ALTER TABLE public.build_requests + ADD COLUMN ai_analyzed BOOLEAN NOT NULL DEFAULT FALSE; + +COMMENT ON COLUMN public.build_requests.ai_analyzed IS + 'Set true after a successful AI analysis of this failed build. Enforces one-analysis-per-job for cost control.';