mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
coderd: autostart: codersdk, http api, database plumbing (#879)
* feat: add columns autostart_schedule, autostop_schedule to database schema * feat: database: add UpdateWorkspaceAutostart and UpdateWorkspaceAutostop methods * feat: add AutostartSchedule/AutostopSchedule to api workspace struct * feat: codersdk: implement update workspace autostart and autostop methods * chore: add unit tests for workspace autostarat and autostop methods
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE ONLY workspaces
|
||||
DROP COLUMN IF EXISTS autostart_schedule,
|
||||
DROP COLUMN IF EXISTS autostop_schedule;
|
||||
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE ONLY workspaces
|
||||
ADD COLUMN IF NOT EXISTS autostart_schedule text DEFAULT NULL,
|
||||
ADD COLUMN IF NOT EXISTS autostop_schedule text DEFAULT NULL;
|
||||
Reference in New Issue
Block a user