mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd): add has_external_agent flag to template_versions and workspace_builds (#19285)
This pull request introduces support for external workspace management, allowing users to register and manage workspaces that are provisioned and managed outside of the Coder. * Added has_external_agent field to workspace builds and template versions
This commit is contained in:
@@ -122,15 +122,6 @@ SET
|
||||
WHERE
|
||||
job_id = $1;
|
||||
|
||||
-- name: UpdateTemplateVersionAITaskByJobID :exec
|
||||
UPDATE
|
||||
template_versions
|
||||
SET
|
||||
has_ai_task = $2,
|
||||
updated_at = $3
|
||||
WHERE
|
||||
job_id = $1;
|
||||
|
||||
-- name: GetPreviousTemplateVersion :one
|
||||
SELECT
|
||||
*
|
||||
@@ -241,3 +232,13 @@ SELECT EXISTS (
|
||||
FROM template_versions
|
||||
WHERE id = $1 AND has_ai_task = TRUE
|
||||
);
|
||||
|
||||
-- name: UpdateTemplateVersionFlagsByJobID :exec
|
||||
UPDATE
|
||||
template_versions
|
||||
SET
|
||||
has_ai_task = $2,
|
||||
has_external_agent = $3,
|
||||
updated_at = $4
|
||||
WHERE
|
||||
job_id = $1;
|
||||
|
||||
Reference in New Issue
Block a user