From 82294ef89d781ac1c7b8f07b80b719431e1aedf1 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Thu, 21 Nov 2024 14:18:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E5=85=B3=E8=81=94=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E7=94=A8=E4=BE=8B=E7=BB=93=E6=9E=9C=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=80=BC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/migration/3.5.0/ddl/V3.5.0_2__ga_ddl.sql | 2 +- .../src/main/resources/migration/3.5.0/dml/V3.5.0_2_1__data.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/framework/domain/src/main/resources/migration/3.5.0/ddl/V3.5.0_2__ga_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.5.0/ddl/V3.5.0_2__ga_ddl.sql index 02c4b8d765..3f28683a34 100644 --- a/backend/framework/domain/src/main/resources/migration/3.5.0/ddl/V3.5.0_2__ga_ddl.sql +++ b/backend/framework/domain/src/main/resources/migration/3.5.0/ddl/V3.5.0_2__ga_ddl.sql @@ -94,7 +94,7 @@ ALTER TABLE exec_task ADD env_grouped bit(1) DEFAULT 0 NULL COMMENT '是否是 ALTER TABLE exec_task ADD pool_id varchar(50) NULL COMMENT '资源池ID'; -- 执行状态字段添加默认值 -ALTER TABLE test_plan_functional_case ALTER COLUMN last_exec_result SET DEFAULT ''; +ALTER TABLE test_plan_functional_case ALTER COLUMN last_exec_result SET DEFAULT 'PENDING'; ALTER TABLE test_plan_api_case ALTER COLUMN last_exec_result SET DEFAULT ''; ALTER TABLE test_plan_api_scenario ALTER COLUMN last_exec_result SET DEFAULT ''; ALTER TABLE api_test_case ALTER COLUMN last_report_status SET DEFAULT ''; diff --git a/backend/framework/domain/src/main/resources/migration/3.5.0/dml/V3.5.0_2_1__data.sql b/backend/framework/domain/src/main/resources/migration/3.5.0/dml/V3.5.0_2_1__data.sql index 82a22b4c93..86f467391a 100644 --- a/backend/framework/domain/src/main/resources/migration/3.5.0/dml/V3.5.0_2_1__data.sql +++ b/backend/framework/domain/src/main/resources/migration/3.5.0/dml/V3.5.0_2_1__data.sql @@ -2,7 +2,7 @@ SET SESSION innodb_lock_wait_timeout = 7200; -- 批量更新执行状态为空串 -UPDATE test_plan_functional_case SET last_exec_result = '' WHERE last_exec_result is null OR last_exec_result = 'PENDING' OR last_exec_result = '-'; +UPDATE test_plan_functional_case SET last_exec_result = 'PENDING' WHERE last_exec_result is null OR last_exec_result = '' OR last_exec_result = '-'; UPDATE test_plan_api_case SET last_exec_result = '' WHERE last_exec_result is null OR last_exec_result = 'PENDING' OR last_exec_result = '-'; UPDATE test_plan_api_scenario SET last_exec_result = '' WHERE last_exec_result is null OR last_exec_result = 'PENDING' OR last_exec_result = '-'; UPDATE api_test_case SET last_report_status = '' WHERE last_report_status = 'PENDING' OR last_report_status = '-';