Skip to content

Commit 9ca40fc

Browse files
committed
move column to workspace_agents table
1 parent 90c8509 commit 9ca40fc

File tree

9 files changed

+81
-71
lines changed

9 files changed

+81
-71
lines changed

agent/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ func (a *agent) run(ctx context.Context) error {
491491
err = a.client.PostStartup(ctx, agentsdk.PostStartupRequest{
492492
Version: buildinfo.Version(),
493493
ExpandedDirectory: manifest.Directory,
494+
Subsystem: a.subsystem,
494495
})
495496
if err != nil {
496497
return xerrors.Errorf("update workspace agent version: %w", err)
@@ -1180,7 +1181,6 @@ func (a *agent) startReportingConnectionStats(ctx context.Context) {
11801181
stats := &agentsdk.Stats{
11811182
ConnectionCount: int64(len(networkStats)),
11821183
ConnectionsByProto: map[string]int64{},
1183-
Subsystem: a.subsystem,
11841184
}
11851185
for conn, counts := range networkStats {
11861186
stats.ConnectionsByProto[conn.Proto.String()]++

coderd/database/dump.sql

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
BEGIN;
22
CREATE TYPE workspace_agent_subsystem AS ENUM ('envbuilder', 'envbox', 'none');
3-
ALTER TABLE workspace_agent_stats ADD COLUMN subsystem workspace_agent_subsystem NOT NULL default 'none';
3+
ALTER TABLE workspace_agents ADD COLUMN subsystem workspace_agent_subsystem NOT NULL default 'none';
44
COMMIT;

coderd/database/models.go

Lines changed: 19 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)