feat: add template max_ttl (#6114)

Co-authored-by: Bruno Quaresma <bruno@coder.com>
This commit is contained in:
Dean Sheather
2023-03-08 01:14:58 +11:00
committed by GitHub
parent 248c53d68d
commit 66a6b590a1
71 changed files with 2090 additions and 398 deletions

View File

@ -0,0 +1,3 @@
ALTER TABLE "workspace_builds" DROP COLUMN "max_deadline";
ALTER TABLE "templates" DROP COLUMN "max_ttl";

View File

@ -0,0 +1,3 @@
ALTER TABLE "templates" ADD COLUMN "max_ttl" bigint DEFAULT '0'::bigint NOT NULL;
ALTER TABLE "workspace_builds" ADD COLUMN "max_deadline" timestamp with time zone DEFAULT '0001-01-01 00:00:00+00'::timestamp with time zone NOT NULL;