fix: 修复SQL错误并优化格式
This commit is contained in:
parent
5517d5c437
commit
118a12f07d
|
@ -22,7 +22,7 @@ WHERE `type` = 'data';
|
||||||
ALTER TABLE project
|
ALTER TABLE project
|
||||||
ADD case_public tinyint(1) DEFAULT NULL COMMENT '是否开启用例公共库';
|
ADD case_public tinyint(1) DEFAULT NULL COMMENT '是否开启用例公共库';
|
||||||
ALTER TABLE project
|
ALTER TABLE project
|
||||||
ADD api_quick varchar(50) DEFAULT NULL COMMENT 'api定义快捷调试按钮',
|
ADD api_quick varchar(50) DEFAULT NULL COMMENT 'api定义快捷调试按钮';
|
||||||
|
|
||||||
ALTER TABLE test_case
|
ALTER TABLE test_case
|
||||||
ADD case_public tinyint(1) DEFAULT NULL COMMENT '是否是公共用例';
|
ADD case_public tinyint(1) DEFAULT NULL COMMENT '是否是公共用例';
|
||||||
|
@ -32,26 +32,26 @@ alter table api_scenario_report add report_version int null;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `api_scenario_report_result`
|
CREATE TABLE IF NOT EXISTS `api_scenario_report_result`
|
||||||
(
|
(
|
||||||
`id` varchar(50) NOT NULL COMMENT 'ID',
|
`id` varchar(50) NOT NULL COMMENT 'ID',
|
||||||
`resource_id` VARCHAR(200) DEFAULT NULL COMMENT '请求资源 id',
|
`resource_id` VARCHAR(200) DEFAULT NULL COMMENT '请求资源 id',
|
||||||
`report_id` VARCHAR(50) DEFAULT NULL COMMENT '报告 id',
|
`report_id` VARCHAR(50) DEFAULT NULL COMMENT '报告 id',
|
||||||
create_time bigint(13) NULL COMMENT '创建时间',
|
`create_time` bigint(13) NULL COMMENT '创建时间',
|
||||||
`status` varchar(100) null COMMENT '结果状态',
|
`status` varchar(100) null COMMENT '结果状态',
|
||||||
`request_time` bigint(13) null COMMENT '请求时间',
|
`request_time` bigint(13) null COMMENT '请求时间',
|
||||||
`total_assertions` bigint(13) null COMMENT '总断言数',
|
`total_assertions` bigint(13) null COMMENT '总断言数',
|
||||||
`pass_assertions` bigint(13) null COMMENT '失败断言数',
|
`pass_assertions` bigint(13) null COMMENT '失败断言数',
|
||||||
content longblob COMMENT '执行结果',
|
`content` longblob COMMENT '执行结果',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `index_resource_id` (`resource_id`) USING BTREE
|
KEY `index_resource_id` (`resource_id`) USING BTREE
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `api_scenario_report_structure`
|
CREATE TABLE IF NOT EXISTS `api_scenario_report_structure`
|
||||||
(
|
(
|
||||||
`id` varchar(50) NOT NULL COMMENT 'ID',
|
`id` varchar(50) NOT NULL COMMENT 'ID',
|
||||||
`report_id` VARCHAR(50) DEFAULT NULL COMMENT '请求资源 id',
|
`report_id` VARCHAR(50) DEFAULT NULL COMMENT '请求资源 id',
|
||||||
create_time bigint(13) NULL COMMENT '创建时间',
|
`create_time` bigint(13) NULL COMMENT '创建时间',
|
||||||
resource_tree longblob DEFAULT NULL COMMENT '资源步骤结构树',
|
`resource_tree` longblob DEFAULT NULL COMMENT '资源步骤结构树',
|
||||||
console LONGTEXT DEFAULT NULL COMMENT '执行日志',
|
`console` LONGTEXT DEFAULT NULL COMMENT '执行日志',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `index_report_id` (`report_id`) USING BTREE
|
KEY `index_report_id` (`report_id`) USING BTREE
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;
|
||||||
|
|
Loading…
Reference in New Issue