From d881403d111659cd1cf6f5e3b6c2189c769a4aee Mon Sep 17 00:00:00 2001 From: shankar0123 Date: Sun, 22 Mar 2026 10:28:41 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20correct=20agent=5Fgroup=5Fmembers=20seed?= =?UTF-8?q?=20data=20=E2=80=94=20reference=20actual=20agent=20IDs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The seed_demo.sql referenced nonexistent agent IDs (agent-web-1, agent-api-1, agent-db-1) in the agent_group_members table, causing a FK constraint violation on fresh database initialization. Fixed to use the actual agent IDs defined earlier in the same file (ag-web-prod, ag-web-staging, ag-iis-prod). Co-Authored-By: Claude Opus 4.6 --- migrations/seed_demo.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/migrations/seed_demo.sql b/migrations/seed_demo.sql index 08b4fbf..41b861a 100644 --- a/migrations/seed_demo.sql +++ b/migrations/seed_demo.sql @@ -203,7 +203,7 @@ ON CONFLICT (id) DO NOTHING; -- Agent Group Members (manual membership for the manual group) INSERT INTO agent_group_members (agent_group_id, agent_id, membership_type, created_at) VALUES - ('ag-manual', 'agent-web-1', 'include', NOW()), - ('ag-manual', 'agent-api-1', 'include', NOW()), - ('ag-manual', 'agent-db-1', 'exclude', NOW()) + ('ag-manual', 'ag-web-prod', 'include', NOW()), + ('ag-manual', 'ag-web-staging', 'include', NOW()), + ('ag-manual', 'ag-iis-prod', 'exclude', NOW()) ON CONFLICT (agent_group_id, agent_id) DO NOTHING;