mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: store coder_workspace_tags in the database (#13294)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
-- name: InsertTemplateVersionWorkspaceTag :one
|
||||
INSERT INTO
|
||||
template_version_workspace_tags (
|
||||
template_version_id,
|
||||
key,
|
||||
value
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
$1,
|
||||
$2,
|
||||
$3
|
||||
) RETURNING *;
|
||||
|
||||
-- name: GetTemplateVersionWorkspaceTags :many
|
||||
SELECT * FROM template_version_workspace_tags WHERE template_version_id = $1 ORDER BY LOWER(key) ASC;
|
||||
Reference in New Issue
Block a user