mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: persist template import terraform plan in postgres (#17012)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
-- name: InsertTemplateVersionTerraformValuesByJobID :exec
|
||||
INSERT INTO
|
||||
template_version_terraform_values (
|
||||
template_version_id,
|
||||
cached_plan,
|
||||
updated_at
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
(select id from template_versions where job_id = @job_id),
|
||||
@cached_plan,
|
||||
@updated_at
|
||||
);
|
||||
Reference in New Issue
Block a user