From be5a4e98813ed8e6b2f1a600183e0c5a79bed4a5 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Tue, 15 Oct 2024 11:32:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83):?= =?UTF-8?q?=20=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=A1=A8=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/migration/3.4.0/ddl/V3.4.0_2__ga_ddl.sql | 5 +++++ 1 file changed, 5 insertions(+) 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 cfc28b8358..9461d3a27a 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 @@ -14,6 +14,7 @@ CREATE TABLE IF NOT EXISTS exec_task( `trigger_mode` VARCHAR(20) NOT NULL COMMENT '执行模式' , `project_id` VARCHAR(50) NOT NULL COMMENT '项目ID' , `organization_id` VARCHAR(50) NOT NULL COMMENT '组织ID' , + `integrated` bit(1) NOT NULL DEFAULT 0 COMMENT '是否是集成报告', `create_time` BIGINT NOT NULL COMMENT '创建时间' , `create_user` VARCHAR(50) NOT NULL COMMENT '创建人' , `start_time` BIGINT COMMENT '开始时间' , @@ -98,5 +99,9 @@ CREATE TABLE api_doc_share ( DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '接口文档分享'; + +ALTER TABLE api_report ADD COLUMN associated_task_id VARCHAR(50) COMMENT '关联任务id(集合报告)/任务项id'; +ALTER TABLE api_scenario_report ADD COLUMN associated_task_id VARCHAR(50) COMMENT '关联任务id(集合报告)/任务项id'; + -- set innodb lock wait timeout to default SET SESSION innodb_lock_wait_timeout = DEFAULT;