mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-07 15:51:30 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user