fix(platform-agent): update runtime to 'claude-code' on ON CONFLICT (#2495) #2496
@@ -509,7 +509,7 @@ func installPlatformAgent(ctx context.Context, database *sql.DB, platformID, nam
|
||||
if _, err := tx.ExecContext(ctx, `
|
||||
INSERT INTO workspaces (id, name, kind, tier, status, runtime, parent_id)
|
||||
VALUES ($1, $2, 'platform', 0, 'online', 'claude-code', NULL)
|
||||
ON CONFLICT (id) DO UPDATE SET kind = 'platform', parent_id = NULL
|
||||
ON CONFLICT (id) DO UPDATE SET kind = 'platform', runtime = 'claude-code', parent_id = NULL
|
||||
`, platformID, name); err != nil {
|
||||
return fmt.Errorf("upsert platform agent: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user