feat: change template max_ttl to default_ttl (#4843)

This commit is contained in:
Garrett Delfosse
2022-11-09 14:36:25 -05:00
committed by GitHub
parent ffc24dcbe0
commit d277e28427
26 changed files with 317 additions and 517 deletions
+5 -7
View File
@@ -65,15 +65,14 @@ INSERT INTO
provisioner,
active_version_id,
description,
max_ttl,
min_autostart_interval,
default_ttl,
created_by,
icon,
user_acl,
group_acl
)
VALUES
($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING *;
($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) RETURNING *;
-- name: UpdateTemplateActiveVersionByID :exec
UPDATE
@@ -99,10 +98,9 @@ UPDATE
SET
updated_at = $2,
description = $3,
max_ttl = $4,
min_autostart_interval = $5,
name = $6,
icon = $7
default_ttl = $4,
name = $5,
icon = $6
WHERE
id = $1
RETURNING