chore: persist template import terraform plan in postgres (#17012)

This commit is contained in:
ケイラ
2025-03-24 10:01:50 -06:00
committed by GitHub
parent 445a059da2
commit 5b3eda6719
26 changed files with 491 additions and 257 deletions
@@ -0,0 +1 @@
drop table template_version_terraform_values;
@@ -0,0 +1,5 @@
create table template_version_terraform_values (
template_version_id uuid not null unique references template_versions(id) on delete cascade,
updated_at timestamptz not null default now(),
cached_plan jsonb not null
);
@@ -0,0 +1,12 @@
insert into
template_version_terraform_values (
template_version_id,
cached_plan,
updated_at
)
select
id,
'{}',
now()
from
template_versions;