init..
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
ALTER TABLE "course_week_modules"
|
||||
ADD COLUMN IF NOT EXISTS "source_type" TEXT NOT NULL DEFAULT 'GIT',
|
||||
ADD COLUMN IF NOT EXISTS "prebuilt_artifacts" JSONB NOT NULL DEFAULT '[]';
|
||||
|
||||
COMMENT ON COLUMN "course_week_modules"."source_type" IS '모듈 소스 제공 방식입니다. 기본값 GIT은 template_repository_url을 사용합니다.';
|
||||
COMMENT ON COLUMN "course_week_modules"."prebuilt_artifacts" IS 'R2 등 외부 저장소에 둔 모듈별 사전 빌드 산출물 목록입니다. build/install tar 아카이브를 기록합니다.';
|
||||
@@ -0,0 +1,49 @@
|
||||
UPDATE "course_environment_profiles"
|
||||
SET "config" = jsonb_set(
|
||||
jsonb_set("config", '{bridge,image}', '"nav2-slam:humble"'::jsonb, true),
|
||||
'{bridge,buildContext}',
|
||||
'"resources/slam-ros-bridge"'::jsonb,
|
||||
true
|
||||
),
|
||||
"updated_at" = CURRENT_TIMESTAMP
|
||||
WHERE upper("profile_type") = 'SLAM';
|
||||
|
||||
UPDATE "course_environment_profiles"
|
||||
SET "config" = jsonb_set(
|
||||
"config",
|
||||
'{runtime,containers}',
|
||||
COALESCE((
|
||||
SELECT jsonb_agg(container)
|
||||
FROM jsonb_array_elements("config" #> '{runtime,containers}') AS container
|
||||
WHERE container->>'name' <> 'slam-ros-bridge'
|
||||
), '[]'::jsonb),
|
||||
true
|
||||
),
|
||||
"updated_at" = CURRENT_TIMESTAMP
|
||||
WHERE upper("profile_type") = 'SLAM'
|
||||
AND jsonb_typeof("config" #> '{runtime,containers}') = 'array';
|
||||
|
||||
UPDATE "visualization_platforms"
|
||||
SET "default_config" = jsonb_set(
|
||||
jsonb_set("default_config", '{bridge,image}', '"nav2-slam:humble"'::jsonb, true),
|
||||
'{bridge,buildContext}',
|
||||
'"resources/slam-ros-bridge"'::jsonb,
|
||||
true
|
||||
),
|
||||
"updated_at" = CURRENT_TIMESTAMP
|
||||
WHERE "platform_key" = 'SLAM';
|
||||
|
||||
UPDATE "visualization_platforms"
|
||||
SET "default_config" = jsonb_set(
|
||||
"default_config",
|
||||
'{runtime,containers}',
|
||||
COALESCE((
|
||||
SELECT jsonb_agg(container)
|
||||
FROM jsonb_array_elements("default_config" #> '{runtime,containers}') AS container
|
||||
WHERE container->>'name' <> 'slam-ros-bridge'
|
||||
), '[]'::jsonb),
|
||||
true
|
||||
),
|
||||
"updated_at" = CURRENT_TIMESTAMP
|
||||
WHERE "platform_key" = 'SLAM'
|
||||
AND jsonb_typeof("default_config" #> '{runtime,containers}') = 'array';
|
||||
Reference in New Issue
Block a user