fix: correct agent_group_members seed data — reference actual agent IDs

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 <noreply@anthropic.com>
This commit is contained in:
shankar0123
2026-03-22 10:28:41 -04:00
parent 690765b53e
commit d881403d11
+3 -3
View File
@@ -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;