diff --git a/backend/framework/domain/src/main/resources/migration/3.4.0/ddl/V3.4.0_2__ga_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.4.0/ddl/V3.4.0_2__ga_ddl.sql index 9461d3a27a..12c2e0d870 100644 --- a/backend/framework/domain/src/main/resources/migration/3.4.0/ddl/V3.4.0_2__ga_ddl.sql +++ b/backend/framework/domain/src/main/resources/migration/3.4.0/ddl/V3.4.0_2__ga_ddl.sql @@ -8,7 +8,7 @@ CREATE TABLE IF NOT EXISTS exec_task( `task_name` VARCHAR(255) NOT NULL COMMENT '任务名称' , `status` VARCHAR(20) NOT NULL COMMENT '状态' , `case_count` BIGINT NOT NULL COMMENT '用例数量' , - `result` VARCHAR(64) COMMENT '执行结果' , + `result` VARCHAR(64) NOT NULL DEFAULT 'PENDING' COMMENT '执行结果' , `task_type` VARCHAR(50) NOT NULL COMMENT '任务类型' , `resource_id` VARCHAR(50) COMMENT '测试计划id/测试计划组id' , `trigger_mode` VARCHAR(20) NOT NULL COMMENT '执行模式' , @@ -43,7 +43,7 @@ CREATE TABLE IF NOT EXISTS exec_task_item( `resource_name` VARCHAR(255) NOT NULL COMMENT '资源名称' , `task_origin` VARCHAR(50) COMMENT '任务来源(任务组下的任务id)' , `status` VARCHAR(20) NOT NULL COMMENT '执行状态' , - `result` VARCHAR(255) COMMENT '执行结果' , + `result` VARCHAR(255) NOT NULL DEFAULT 'PENDING' COMMENT '执行结果' , `resource_pool_id` VARCHAR(50) NOT NULL COMMENT '资源池ID' , `resource_pool_node` VARCHAR(50) COMMENT '节点' , `resource_type` VARCHAR(50) NOT NULL COMMENT '资源类型' , diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtExecTaskItemMapper.xml b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtExecTaskItemMapper.xml index efb59d548e..dc849f80ab 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtExecTaskItemMapper.xml +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/mapper/ExtExecTaskItemMapper.xml @@ -3,7 +3,7 @@