Skip to content

Commit 400a787

Browse files
committed
feat: database: add UpdateWorkspaceAutostart and UpdateWorkspaceAutostop methods
1 parent 1438444 commit 400a787

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

coderd/database/queries.sql.go

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

coderd/database/queries/workspaces.sql

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,19 @@ SET
6868
deleted = $2
6969
WHERE
7070
id = $1;
71+
72+
-- name: UpdateWorkspaceAutostart :exec
73+
UPDATE
74+
workspaces
75+
SET
76+
autostart_schedule = $2
77+
WHERE
78+
id = $1;
79+
80+
-- name: UpdateWorkspaceAutostop :exec
81+
UPDATE
82+
workspaces
83+
SET
84+
autostop_schedule = $2
85+
WHERE
86+
id = $1;

0 commit comments

Comments
 (0)