mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
feat: allow disabling autostart and custom autostop for template (#6933)
API only, frontend in upcoming PR.
This commit is contained in:
@ -3,4 +3,4 @@ ALTER TABLE "templates" DROP COLUMN "min_autostart_interval";
|
||||
|
||||
-- rename "max_ttl" to "default_ttl" on "templates" table
|
||||
ALTER TABLE "templates" RENAME COLUMN "max_ttl" TO "default_ttl";
|
||||
COMMENT ON COLUMN templates.default_ttl IS 'The default duration for auto-stop for workspaces created from this template.';
|
||||
COMMENT ON COLUMN templates.default_ttl IS 'The default duration for autostop for workspaces created from this template.';
|
||||
|
@ -0,0 +1,3 @@
|
||||
ALTER TABLE "templates"
|
||||
DROP COLUMN "allow_user_autostart",
|
||||
DROP COLUMN "allow_user_autostop";
|
@ -0,0 +1,9 @@
|
||||
ALTER TABLE "templates"
|
||||
ADD COLUMN "allow_user_autostart" boolean DEFAULT true NOT NULL,
|
||||
ADD COLUMN "allow_user_autostop" boolean DEFAULT true NOT NULL;
|
||||
|
||||
COMMENT ON COLUMN "templates"."allow_user_autostart"
|
||||
IS 'Allow users to specify an autostart schedule for workspaces (enterprise).';
|
||||
|
||||
COMMENT ON COLUMN "templates"."allow_user_autostop"
|
||||
IS 'Allow users to specify custom autostop values for workspaces (enterprise).';
|
Reference in New Issue
Block a user