mirror of https://github.com/coder/coder.git
33 lines
603 B
SQL
33 lines
603 B
SQL
-- name: InsertTemplateVersionParameter :one
|
|
INSERT INTO
|
|
template_version_parameters (
|
|
template_version_id,
|
|
name,
|
|
description,
|
|
type,
|
|
mutable,
|
|
default_value,
|
|
icon,
|
|
options,
|
|
validation_regex,
|
|
validation_min,
|
|
validation_max
|
|
)
|
|
VALUES
|
|
(
|
|
$1,
|
|
$2,
|
|
$3,
|
|
$4,
|
|
$5,
|
|
$6,
|
|
$7,
|
|
$8,
|
|
$9,
|
|
$10,
|
|
$11
|
|
) RETURNING *;
|
|
|
|
-- name: GetTemplateVersionParameters :many
|
|
SELECT * FROM template_version_parameters WHERE template_version_id = $1;
|