From d65142dd213d70b66036b36cbc34ab24529d9f89 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Thu, 10 Mar 2022 11:30:49 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E8=B0=83=E6=95=B4flyway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/main/resources/db/migration/V99__v1.15_release.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/resources/db/migration/V99__v1.15_release.sql b/backend/src/main/resources/db/migration/V99__v1.15_release.sql index 5f54a9f3cb..48afc1968b 100644 --- a/backend/src/main/resources/db/migration/V99__v1.15_release.sql +++ b/backend/src/main/resources/db/migration/V99__v1.15_release.sql @@ -34,7 +34,7 @@ alter table api_scenario add environment_group_id varchar(50) null; update api_scenario -set environment_json = api_scenario.scenario_definition -> '$.environmentMap' +set environment_json = JSON_EXTRACT(api_scenario.scenario_definition, '$.environmentMap') where api_scenario.environment_json is null; update api_scenario set environment_type = 'JSON';