refactor: 规范建表语句
This commit is contained in:
parent
f9ece001a9
commit
988f13b1ef
|
@ -6,7 +6,7 @@ create table service_integration
|
||||||
configuration text not null,
|
configuration text not null,
|
||||||
constraint service_integration_pk
|
constraint service_integration_pk
|
||||||
primary key (id)
|
primary key (id)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
create table if not exists test_case_issues
|
create table if not exists test_case_issues
|
||||||
(
|
(
|
||||||
|
@ -14,7 +14,7 @@ create table if not exists test_case_issues
|
||||||
primary key,
|
primary key,
|
||||||
test_case_id varchar(50) not null,
|
test_case_id varchar(50) not null,
|
||||||
issues_id varchar(100) not null
|
issues_id varchar(100) not null
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
create table if not exists issues
|
create table if not exists issues
|
||||||
(
|
(
|
||||||
|
@ -28,4 +28,4 @@ create table if not exists issues
|
||||||
reporter varchar(50) null comment 'case issues creator',
|
reporter varchar(50) null comment 'case issues creator',
|
||||||
lastmodify varchar(50) null,
|
lastmodify varchar(50) null,
|
||||||
platform varchar(50) null
|
platform varchar(50) null
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
|
@ -11,5 +11,4 @@ CREATE TABLE IF NOT EXISTS `quota`
|
||||||
`use_default` tinyint(1) DEFAULT NULL,
|
`use_default` tinyint(1) DEFAULT NULL,
|
||||||
`update_time` bigint(13) DEFAULT NULL,
|
`update_time` bigint(13) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE = InnoDB
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
DEFAULT CHARSET = utf8mb4
|
|
||||||
|
|
|
@ -4,6 +4,6 @@ create table if not exists test_plan_project
|
||||||
project_id varchar(50) null,
|
project_id varchar(50) null,
|
||||||
constraint test_plan_project_pk
|
constraint test_plan_project_pk
|
||||||
unique (test_plan_id, project_id)
|
unique (test_plan_id, project_id)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
insert into test_plan_project(test_plan_id, project_id) select id test_plan_id, project_id project_id from test_plan;
|
insert into test_plan_project(test_plan_id, project_id) select id test_plan_id, project_id project_id from test_plan;
|
||||||
|
|
|
@ -4,5 +4,5 @@ CREATE TABLE IF NOT EXISTS `notice`(
|
||||||
`NAME` VARCHAR(100) NOT NULL,
|
`NAME` VARCHAR(100) NOT NULL,
|
||||||
`EMAIL` VARCHAR(100) NOT NULL,
|
`EMAIL` VARCHAR(100) NOT NULL,
|
||||||
`ENABLE` VARCHAR(40) NOT NULL
|
`ENABLE` VARCHAR(40) NOT NULL
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
|
|
|
@ -4,4 +4,4 @@ CREATE TABLE `license` (
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
`license_code` longtext DEFAULT NULL COMMENT 'license_code',
|
`license_code` longtext DEFAULT NULL COMMENT 'license_code',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
|
@ -7,7 +7,7 @@ create table if not exists test_case_comment
|
||||||
author varchar(50) null,
|
author varchar(50) null,
|
||||||
create_time bigint(13) null,
|
create_time bigint(13) null,
|
||||||
update_time bigint(13) null
|
update_time bigint(13) null
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
create table if not exists test_case_review
|
create table if not exists test_case_review
|
||||||
(
|
(
|
||||||
|
@ -20,7 +20,7 @@ create table if not exists test_case_review
|
||||||
update_time bigint(13) null,
|
update_time bigint(13) null,
|
||||||
end_time bigint(13) null,
|
end_time bigint(13) null,
|
||||||
description text null
|
description text null
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
create table if not exists test_case_review_project
|
create table if not exists test_case_review_project
|
||||||
(
|
(
|
||||||
|
@ -28,7 +28,7 @@ create table if not exists test_case_review_project
|
||||||
project_id varchar(50) null,
|
project_id varchar(50) null,
|
||||||
constraint test_case_review_project_pk
|
constraint test_case_review_project_pk
|
||||||
unique (review_id, project_id)
|
unique (review_id, project_id)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
create table if not exists test_case_review_test_case
|
create table if not exists test_case_review_test_case
|
||||||
(
|
(
|
||||||
|
@ -41,7 +41,7 @@ create table if not exists test_case_review_test_case
|
||||||
reviewer varchar(64) null,
|
reviewer varchar(64) null,
|
||||||
create_time bigint(13) null,
|
create_time bigint(13) null,
|
||||||
update_time bigint(13) null
|
update_time bigint(13) null
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
create table if not exists test_case_review_users
|
create table if not exists test_case_review_users
|
||||||
(
|
(
|
||||||
|
@ -49,6 +49,6 @@ create table if not exists test_case_review_users
|
||||||
user_id varchar(50) null,
|
user_id varchar(50) null,
|
||||||
constraint test_case_review_users_pk
|
constraint test_case_review_users_pk
|
||||||
unique (review_id, user_id)
|
unique (review_id, user_id)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,7 @@ CREATE TABLE IF NOT EXISTS `file_content` (
|
||||||
`file_id` varchar(64) NOT NULL COMMENT 'File ID',
|
`file_id` varchar(64) NOT NULL COMMENT 'File ID',
|
||||||
`file` longblob COMMENT 'File content',
|
`file` longblob COMMENT 'File content',
|
||||||
PRIMARY KEY (`file_id`)
|
PRIMARY KEY (`file_id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `file_metadata` (
|
CREATE TABLE IF NOT EXISTS `file_metadata` (
|
||||||
`id` varchar(64) NOT NULL COMMENT 'File ID',
|
`id` varchar(64) NOT NULL COMMENT 'File ID',
|
||||||
|
@ -14,7 +12,7 @@ CREATE TABLE IF NOT EXISTS `file_metadata` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE `load_test` (
|
CREATE TABLE `load_test` (
|
||||||
`id` varchar(50) NOT NULL COMMENT 'Test ID',
|
`id` varchar(50) NOT NULL COMMENT 'Test ID',
|
||||||
|
@ -30,13 +28,13 @@ CREATE TABLE `load_test` (
|
||||||
`test_resource_pool_id` varchar(50) DEFAULT NULL,
|
`test_resource_pool_id` varchar(50) DEFAULT NULL,
|
||||||
`user_id` varchar(64) DEFAULT NULL,
|
`user_id` varchar(64) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `load_test_file` (
|
CREATE TABLE IF NOT EXISTS `load_test_file` (
|
||||||
`test_id` varchar(64) DEFAULT NULL,
|
`test_id` varchar(64) DEFAULT NULL,
|
||||||
`file_id` varchar(64) DEFAULT NULL,
|
`file_id` varchar(64) DEFAULT NULL,
|
||||||
UNIQUE KEY `load_test_file_unique_key` (`test_id`, `file_id`)
|
UNIQUE KEY `load_test_file_unique_key` (`test_id`, `file_id`)
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COMMENT ='测试和文件的关联表';
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci COMMENT ='测试和文件的关联表';
|
||||||
|
|
||||||
CREATE TABLE `load_test_report` (
|
CREATE TABLE `load_test_report` (
|
||||||
`id` varchar(50) NOT NULL COMMENT 'Test report ID',
|
`id` varchar(50) NOT NULL COMMENT 'Test report ID',
|
||||||
|
@ -48,14 +46,14 @@ CREATE TABLE `load_test_report` (
|
||||||
`status` varchar(64) NOT NULL COMMENT 'Status of this test run',
|
`status` varchar(64) NOT NULL COMMENT 'Status of this test run',
|
||||||
`user_id` varchar(64) DEFAULT NULL,
|
`user_id` varchar(64) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `load_test_report_detail` (
|
CREATE TABLE IF NOT EXISTS `load_test_report_detail` (
|
||||||
`report_id` varchar(50) NOT NULL,
|
`report_id` varchar(50) NOT NULL,
|
||||||
`content` longtext,
|
`content` longtext,
|
||||||
`part` bigint(11) NOT NULL,
|
`part` bigint(11) NOT NULL,
|
||||||
PRIMARY KEY (`report_id`,`part`)
|
PRIMARY KEY (`report_id`,`part`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `load_test_report_log` (
|
CREATE TABLE IF NOT EXISTS `load_test_report_log` (
|
||||||
`id` varchar(50) NOT NULL,
|
`id` varchar(50) NOT NULL,
|
||||||
|
@ -65,7 +63,7 @@ CREATE TABLE IF NOT EXISTS `load_test_report_log` (
|
||||||
`part` bigint(20) DEFAULT NULL,
|
`part` bigint(20) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `load_test_report_log_report_id_resource_name_index` (`report_id`,`resource_id`,`part`)
|
KEY `load_test_report_log_report_id_resource_name_index` (`report_id`,`resource_id`,`part`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `load_test_report_result` (
|
CREATE TABLE IF NOT EXISTS `load_test_report_result` (
|
||||||
`id` varchar(50) NOT NULL,
|
`id` varchar(50) NOT NULL,
|
||||||
|
@ -74,7 +72,7 @@ CREATE TABLE IF NOT EXISTS `load_test_report_result` (
|
||||||
`report_value` text ,
|
`report_value` text ,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `load_test_report_result_report_id_report_key_index` (`report_id`,`report_key`)
|
KEY `load_test_report_result_report_id_report_key_index` (`report_id`,`report_key`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `organization` (
|
CREATE TABLE IF NOT EXISTS `organization` (
|
||||||
|
@ -84,10 +82,7 @@ CREATE TABLE IF NOT EXISTS `organization` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4
|
|
||||||
;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `project` (
|
CREATE TABLE IF NOT EXISTS `project` (
|
||||||
`id` varchar(50) NOT NULL COMMENT 'Project ID',
|
`id` varchar(50) NOT NULL COMMENT 'Project ID',
|
||||||
|
@ -97,10 +92,7 @@ CREATE TABLE IF NOT EXISTS `project` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4
|
|
||||||
;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `role` (
|
CREATE TABLE IF NOT EXISTS `role` (
|
||||||
`id` varchar(50) NOT NULL COMMENT 'Role ID',
|
`id` varchar(50) NOT NULL COMMENT 'Role ID',
|
||||||
|
@ -110,9 +102,7 @@ CREATE TABLE IF NOT EXISTS `role` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `system_parameter` (
|
CREATE TABLE IF NOT EXISTS `system_parameter` (
|
||||||
`param_key` varchar(64) CHARACTER SET utf8mb4 NOT NULL COMMENT 'Parameter name',
|
`param_key` varchar(64) CHARACTER SET utf8mb4 NOT NULL COMMENT 'Parameter name',
|
||||||
|
@ -120,9 +110,7 @@ CREATE TABLE IF NOT EXISTS `system_parameter` (
|
||||||
`type` varchar(100) NOT NULL DEFAULT 'text' COMMENT 'Parameter type',
|
`type` varchar(100) NOT NULL DEFAULT 'text' COMMENT 'Parameter type',
|
||||||
`sort` int(5) DEFAULT NULL COMMENT 'Sort',
|
`sort` int(5) DEFAULT NULL COMMENT 'Sort',
|
||||||
PRIMARY KEY (`param_key`)
|
PRIMARY KEY (`param_key`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `test_resource` (
|
CREATE TABLE IF NOT EXISTS `test_resource` (
|
||||||
`id` varchar(50) NOT NULL COMMENT 'Test resource ID',
|
`id` varchar(50) NOT NULL COMMENT 'Test resource ID',
|
||||||
|
@ -132,9 +120,7 @@ CREATE TABLE IF NOT EXISTS `test_resource` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `test_resource_pool` (
|
CREATE TABLE IF NOT EXISTS `test_resource_pool` (
|
||||||
`id` varchar(50) NOT NULL COMMENT 'Test resource pool ID',
|
`id` varchar(50) NOT NULL COMMENT 'Test resource pool ID',
|
||||||
|
@ -145,9 +131,7 @@ CREATE TABLE IF NOT EXISTS `test_resource_pool` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `user` (
|
CREATE TABLE IF NOT EXISTS `user` (
|
||||||
`id` varchar(50) COLLATE utf8mb4_bin NOT NULL COMMENT 'User ID',
|
`id` varchar(50) COLLATE utf8mb4_bin NOT NULL COMMENT 'User ID',
|
||||||
|
@ -162,9 +146,7 @@ CREATE TABLE IF NOT EXISTS `user` (
|
||||||
`last_organization_id` varchar(50) DEFAULT NULL,
|
`last_organization_id` varchar(50) DEFAULT NULL,
|
||||||
`phone` varchar(50) DEFAULT NULL COMMENT 'Phone number of user',
|
`phone` varchar(50) DEFAULT NULL COMMENT 'Phone number of user',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `user_role` (
|
CREATE TABLE IF NOT EXISTS `user_role` (
|
||||||
`id` varchar(50) NOT NULL COMMENT 'ID of user''s role info',
|
`id` varchar(50) NOT NULL COMMENT 'ID of user''s role info',
|
||||||
|
@ -174,9 +156,7 @@ CREATE TABLE IF NOT EXISTS `user_role` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `workspace` (
|
CREATE TABLE IF NOT EXISTS `workspace` (
|
||||||
`id` varchar(50) NOT NULL COMMENT 'Workspace ID ',
|
`id` varchar(50) NOT NULL COMMENT 'Workspace ID ',
|
||||||
|
@ -186,9 +166,7 @@ CREATE TABLE IF NOT EXISTS `workspace` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
-- api start
|
-- api start
|
||||||
|
|
||||||
|
@ -210,7 +188,7 @@ CREATE TABLE IF NOT EXISTS `api_test_file` (
|
||||||
`test_id` varchar(64) DEFAULT NULL,
|
`test_id` varchar(64) DEFAULT NULL,
|
||||||
`file_id` varchar(64) DEFAULT NULL,
|
`file_id` varchar(64) DEFAULT NULL,
|
||||||
UNIQUE KEY `api_test_file_unique_key` (`test_id`, `file_id`)
|
UNIQUE KEY `api_test_file_unique_key` (`test_id`, `file_id`)
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COMMENT ='Api test test file relevance table';
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci COMMENT ='Api test test file relevance table';
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `api_test_report` (
|
CREATE TABLE IF NOT EXISTS `api_test_report` (
|
||||||
`id` varchar(50) NOT NULL COMMENT 'Test report ID',
|
`id` varchar(50) NOT NULL COMMENT 'Test report ID',
|
||||||
|
@ -222,16 +200,14 @@ CREATE TABLE IF NOT EXISTS `api_test_report` (
|
||||||
`status` varchar(64) NOT NULL COMMENT 'Status of this test run',
|
`status` varchar(64) NOT NULL COMMENT 'Status of this test run',
|
||||||
`user_id` varchar(64) DEFAULT NULL COMMENT 'User ID',
|
`user_id` varchar(64) DEFAULT NULL COMMENT 'User ID',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `api_test_report_detail` (
|
CREATE TABLE IF NOT EXISTS `api_test_report_detail` (
|
||||||
`report_id` varchar(64) NOT NULL COMMENT 'API Test Report ID',
|
`report_id` varchar(64) NOT NULL COMMENT 'API Test Report ID',
|
||||||
`test_id` varchar(64) NOT NULL COMMENT 'Test ID',
|
`test_id` varchar(64) NOT NULL COMMENT 'Test ID',
|
||||||
`content` longblob COMMENT 'Report content',
|
`content` longblob COMMENT 'Report content',
|
||||||
PRIMARY KEY (`report_id`)
|
PRIMARY KEY (`report_id`)
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
-- api end
|
-- api end
|
||||||
|
|
||||||
|
@ -253,9 +229,7 @@ CREATE TABLE IF NOT EXISTS `test_plan` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `test_case_node` (
|
CREATE TABLE IF NOT EXISTS `test_case_node` (
|
||||||
|
@ -267,9 +241,7 @@ CREATE TABLE IF NOT EXISTS `test_case_node` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `test_case` (
|
CREATE TABLE IF NOT EXISTS `test_case` (
|
||||||
|
@ -289,9 +261,7 @@ CREATE TABLE IF NOT EXISTS `test_case` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `test_plan_test_case` (
|
CREATE TABLE IF NOT EXISTS `test_plan_test_case` (
|
||||||
|
@ -307,9 +277,7 @@ CREATE TABLE IF NOT EXISTS `test_plan_test_case` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `test_case_report_template` (
|
CREATE TABLE IF NOT EXISTS `test_case_report_template` (
|
||||||
`id` varchar(50) NOT NULL,
|
`id` varchar(50) NOT NULL,
|
||||||
|
@ -317,9 +285,7 @@ CREATE TABLE IF NOT EXISTS `test_case_report_template` (
|
||||||
`workspace_id` varchar(50) DEFAULT NULL COMMENT 'Workspace ID this project belongs to',
|
`workspace_id` varchar(50) DEFAULT NULL COMMENT 'Workspace ID this project belongs to',
|
||||||
`content` longtext COMMENT 'Template content (JSON format)',
|
`content` longtext COMMENT 'Template content (JSON format)',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE=InnoDB
|
|
||||||
DEFAULT CHARSET=utf8mb4;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `test_case_report` (
|
CREATE TABLE IF NOT EXISTS `test_case_report` (
|
||||||
`id` varchar(50) NOT NULL,
|
`id` varchar(50) NOT NULL,
|
||||||
|
@ -328,9 +294,7 @@ CREATE TABLE IF NOT EXISTS `test_case_report` (
|
||||||
`start_time` bigint(13) COMMENT 'Test start time',
|
`start_time` bigint(13) COMMENT 'Test start time',
|
||||||
`end_time` bigint(13) COMMENT 'Test end time',
|
`end_time` bigint(13) COMMENT 'Test end time',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE=InnoDB
|
|
||||||
DEFAULT CHARSET=utf8mb4;
|
|
||||||
|
|
||||||
-- track end
|
-- track end
|
||||||
|
|
||||||
|
|
|
@ -10,4 +10,4 @@ CREATE TABLE IF NOT EXISTS `jar_config` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
|
@ -9,4 +9,4 @@ CREATE TABLE IF NOT EXISTS `api_data_view`
|
||||||
response_time varchar(20) default '0' NULL,
|
response_time varchar(20) default '0' NULL,
|
||||||
create_time timestamp default CURRENT_TIMESTAMP NOT NULL,
|
create_time timestamp default CURRENT_TIMESTAMP NOT NULL,
|
||||||
update_time timestamp default CURRENT_TIMESTAMP NOT NULL
|
update_time timestamp default CURRENT_TIMESTAMP NOT NULL
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
|
@ -8,7 +8,5 @@ CREATE TABLE `user_key` (
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `IDX_AK` (`access_key`),
|
UNIQUE KEY `IDX_AK` (`access_key`),
|
||||||
KEY `IDX_USER_ID` (`user_id`)
|
KEY `IDX_USER_ID` (`user_id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ CREATE TABLE `api_scenario` (
|
||||||
`last_result` varchar(100) DEFAULT NULL,
|
`last_result` varchar(100) DEFAULT NULL,
|
||||||
`report_id` varchar(50) DEFAULT NULL,
|
`report_id` varchar(50) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE `api_scenario_module` (
|
CREATE TABLE `api_scenario_module` (
|
||||||
|
@ -36,7 +36,7 @@ CREATE TABLE `api_scenario_module` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE `api_scenario_report` (
|
CREATE TABLE `api_scenario_report` (
|
||||||
|
@ -51,11 +51,11 @@ CREATE TABLE `api_scenario_report` (
|
||||||
`trigger_mode` varchar(64) DEFAULT NULL,
|
`trigger_mode` varchar(64) DEFAULT NULL,
|
||||||
`execute_type` varchar(200) NULL,
|
`execute_type` varchar(200) NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE `api_scenario_report_detail` (
|
CREATE TABLE `api_scenario_report_detail` (
|
||||||
`report_id` varchar(64) NOT NULL COMMENT 'API Test Report ID',
|
`report_id` varchar(64) NOT NULL COMMENT 'API Test Report ID',
|
||||||
`project_id` varchar(64) NOT NULL COMMENT 'scenario ID',
|
`project_id` varchar(64) NOT NULL COMMENT 'scenario ID',
|
||||||
`content` longblob COMMENT 'Report Content',
|
`content` longblob COMMENT 'Report Content',
|
||||||
PRIMARY KEY (`report_id`)
|
PRIMARY KEY (`report_id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
|
@ -9,9 +9,7 @@ CREATE TABLE IF NOT EXISTS `api_module` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `api_definition` (
|
CREATE TABLE IF NOT EXISTS `api_definition` (
|
||||||
`id` varchar(50) NOT NULL COMMENT 'Test ID',
|
`id` varchar(50) NOT NULL COMMENT 'Test ID',
|
||||||
|
@ -32,7 +30,7 @@ CREATE TABLE IF NOT EXISTS `api_definition` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `api_test_case` (
|
CREATE TABLE IF NOT EXISTS `api_test_case` (
|
||||||
`id` varchar(50) NOT NULL COMMENT 'Test ID',
|
`id` varchar(50) NOT NULL COMMENT 'Test ID',
|
||||||
|
@ -48,7 +46,7 @@ CREATE TABLE IF NOT EXISTS `api_test_case` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `api_definition_exec_result` (
|
CREATE TABLE IF NOT EXISTS `api_definition_exec_result` (
|
||||||
`id` varchar(50) NOT NULL COMMENT 'Test ID',
|
`id` varchar(50) NOT NULL COMMENT 'Test ID',
|
||||||
|
@ -61,7 +59,7 @@ CREATE TABLE IF NOT EXISTS `api_definition_exec_result` (
|
||||||
`end_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`end_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
`create_time` bigint(13) NULL COMMENT 'Create time',
|
`create_time` bigint(13) NULL COMMENT 'Create time',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
ALTER TABLE `api_definition` ADD INDEX ( `user_id` );
|
ALTER TABLE `api_definition` ADD INDEX ( `user_id` );
|
||||||
ALTER TABLE `api_definition` ADD INDEX ( `project_id` );
|
ALTER TABLE `api_definition` ADD INDEX ( `project_id` );
|
||||||
|
|
|
@ -8,7 +8,7 @@ CREATE TABLE IF NOT EXISTS `test_plan_api_case` (
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `plan_id_case_id` (`test_plan_id`, `api_case_id`)
|
UNIQUE KEY `plan_id_case_id` (`test_plan_id`, `api_case_id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `test_plan_api_scenario` (
|
CREATE TABLE IF NOT EXISTS `test_plan_api_scenario` (
|
||||||
|
@ -24,6 +24,6 @@ CREATE TABLE IF NOT EXISTS `test_plan_api_scenario` (
|
||||||
`report_id` varchar(50) DEFAULT NULL,
|
`report_id` varchar(50) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `plan_id_scenario_id` (`test_plan_id`, `api_scenario_id`)
|
UNIQUE KEY `plan_id_scenario_id` (`test_plan_id`, `api_scenario_id`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
ALTER TABLE api_definition_exec_result ADD `type` varchar(20) NULL;
|
ALTER TABLE api_definition_exec_result ADD `type` varchar(20) NULL;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
-- quartz start
|
-- quartz start
|
||||||
CREATE TABLE `qrtz_job_details` (
|
CREATE TABLE `QRTZ_JOB_DETAILS` (
|
||||||
`SCHED_NAME` varchar(120) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
`JOB_NAME` varchar(200) NOT NULL,
|
`JOB_NAME` varchar(200) NOT NULL,
|
||||||
`JOB_GROUP` varchar(200) NOT NULL,
|
`JOB_GROUP` varchar(200) NOT NULL,
|
||||||
|
@ -13,9 +13,9 @@ CREATE TABLE `qrtz_job_details` (
|
||||||
PRIMARY KEY (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`),
|
PRIMARY KEY (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`),
|
||||||
KEY `IDX_QRTZ_J_REQ_RECOVERY` (`SCHED_NAME`,`REQUESTS_RECOVERY`),
|
KEY `IDX_QRTZ_J_REQ_RECOVERY` (`SCHED_NAME`,`REQUESTS_RECOVERY`),
|
||||||
KEY `IDX_QRTZ_J_GRP` (`SCHED_NAME`,`JOB_GROUP`)
|
KEY `IDX_QRTZ_J_GRP` (`SCHED_NAME`,`JOB_GROUP`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE `qrtz_triggers` (
|
CREATE TABLE `QRTZ_TRIGGERS` (
|
||||||
`SCHED_NAME` varchar(120) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
`TRIGGER_NAME` varchar(200) NOT NULL,
|
`TRIGGER_NAME` varchar(200) NOT NULL,
|
||||||
`TRIGGER_GROUP` varchar(200) NOT NULL,
|
`TRIGGER_GROUP` varchar(200) NOT NULL,
|
||||||
|
@ -46,9 +46,9 @@ CREATE TABLE `qrtz_triggers` (
|
||||||
KEY `IDX_QRTZ_T_NFT_ST_MISFIRE` (`SCHED_NAME`,`MISFIRE_INSTR`,`NEXT_FIRE_TIME`,`TRIGGER_STATE`),
|
KEY `IDX_QRTZ_T_NFT_ST_MISFIRE` (`SCHED_NAME`,`MISFIRE_INSTR`,`NEXT_FIRE_TIME`,`TRIGGER_STATE`),
|
||||||
KEY `IDX_QRTZ_T_NFT_ST_MISFIRE_GRP` (`SCHED_NAME`,`MISFIRE_INSTR`,`NEXT_FIRE_TIME`,`TRIGGER_GROUP`,`TRIGGER_STATE`),
|
KEY `IDX_QRTZ_T_NFT_ST_MISFIRE_GRP` (`SCHED_NAME`,`MISFIRE_INSTR`,`NEXT_FIRE_TIME`,`TRIGGER_GROUP`,`TRIGGER_STATE`),
|
||||||
CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) REFERENCES `qrtz_job_details` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`)
|
CONSTRAINT `qrtz_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) REFERENCES `qrtz_job_details` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE `qrtz_blob_triggers` (
|
CREATE TABLE `QRTZ_BLOB_TRIGGERS` (
|
||||||
`SCHED_NAME` varchar(120) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
`TRIGGER_NAME` varchar(200) NOT NULL,
|
`TRIGGER_NAME` varchar(200) NOT NULL,
|
||||||
`TRIGGER_GROUP` varchar(200) NOT NULL,
|
`TRIGGER_GROUP` varchar(200) NOT NULL,
|
||||||
|
@ -56,16 +56,16 @@ CREATE TABLE `qrtz_blob_triggers` (
|
||||||
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
||||||
KEY `SCHED_NAME` (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
KEY `SCHED_NAME` (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
||||||
CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
CONSTRAINT `qrtz_blob_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE `qrtz_calendars` (
|
CREATE TABLE `QRTZ_CALENDARS` (
|
||||||
`SCHED_NAME` varchar(120) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
`CALENDAR_NAME` varchar(200) NOT NULL,
|
`CALENDAR_NAME` varchar(200) NOT NULL,
|
||||||
`CALENDAR` blob NOT NULL,
|
`CALENDAR` blob NOT NULL,
|
||||||
PRIMARY KEY (`SCHED_NAME`,`CALENDAR_NAME`)
|
PRIMARY KEY (`SCHED_NAME`,`CALENDAR_NAME`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE `qrtz_cron_triggers` (
|
CREATE TABLE `QRTZ_CRON_TRIGGERS` (
|
||||||
`SCHED_NAME` varchar(120) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
`TRIGGER_NAME` varchar(200) NOT NULL,
|
`TRIGGER_NAME` varchar(200) NOT NULL,
|
||||||
`TRIGGER_GROUP` varchar(200) NOT NULL,
|
`TRIGGER_GROUP` varchar(200) NOT NULL,
|
||||||
|
@ -73,9 +73,9 @@ CREATE TABLE `qrtz_cron_triggers` (
|
||||||
`TIME_ZONE_ID` varchar(80) DEFAULT NULL,
|
`TIME_ZONE_ID` varchar(80) DEFAULT NULL,
|
||||||
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
||||||
CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
CONSTRAINT `qrtz_cron_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE `qrtz_fired_triggers` (
|
CREATE TABLE `QRTZ_FIRED_TRIGGERS` (
|
||||||
`SCHED_NAME` varchar(120) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
`ENTRY_ID` varchar(95) NOT NULL,
|
`ENTRY_ID` varchar(95) NOT NULL,
|
||||||
`TRIGGER_NAME` varchar(200) NOT NULL,
|
`TRIGGER_NAME` varchar(200) NOT NULL,
|
||||||
|
@ -96,29 +96,29 @@ CREATE TABLE `qrtz_fired_triggers` (
|
||||||
KEY `IDX_QRTZ_FT_JG` (`SCHED_NAME`,`JOB_GROUP`),
|
KEY `IDX_QRTZ_FT_JG` (`SCHED_NAME`,`JOB_GROUP`),
|
||||||
KEY `IDX_QRTZ_FT_T_G` (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
KEY `IDX_QRTZ_FT_T_G` (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
||||||
KEY `IDX_QRTZ_FT_TG` (`SCHED_NAME`,`TRIGGER_GROUP`)
|
KEY `IDX_QRTZ_FT_TG` (`SCHED_NAME`,`TRIGGER_GROUP`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE `qrtz_locks` (
|
CREATE TABLE `QRTZ_LOCKS` (
|
||||||
`SCHED_NAME` varchar(120) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
`LOCK_NAME` varchar(40) NOT NULL,
|
`LOCK_NAME` varchar(40) NOT NULL,
|
||||||
PRIMARY KEY (`SCHED_NAME`,`LOCK_NAME`)
|
PRIMARY KEY (`SCHED_NAME`,`LOCK_NAME`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE `qrtz_paused_trigger_grps` (
|
CREATE TABLE `QRTZ_PAUSED_TRIGGER_GRPS` (
|
||||||
`SCHED_NAME` varchar(120) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
`TRIGGER_GROUP` varchar(200) NOT NULL,
|
`TRIGGER_GROUP` varchar(200) NOT NULL,
|
||||||
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_GROUP`)
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_GROUP`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE `qrtz_scheduler_state` (
|
CREATE TABLE `QRTZ_SCHEDULER_STATE` (
|
||||||
`SCHED_NAME` varchar(120) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
`INSTANCE_NAME` varchar(200) NOT NULL,
|
`INSTANCE_NAME` varchar(200) NOT NULL,
|
||||||
`LAST_CHECKIN_TIME` bigint(13) NOT NULL,
|
`LAST_CHECKIN_TIME` bigint(13) NOT NULL,
|
||||||
`CHECKIN_INTERVAL` bigint(13) NOT NULL,
|
`CHECKIN_INTERVAL` bigint(13) NOT NULL,
|
||||||
PRIMARY KEY (`SCHED_NAME`,`INSTANCE_NAME`)
|
PRIMARY KEY (`SCHED_NAME`,`INSTANCE_NAME`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE `qrtz_simple_triggers` (
|
CREATE TABLE `QRTZ_SIMPLE_TRIGGERS` (
|
||||||
`SCHED_NAME` varchar(120) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
`TRIGGER_NAME` varchar(200) NOT NULL,
|
`TRIGGER_NAME` varchar(200) NOT NULL,
|
||||||
`TRIGGER_GROUP` varchar(200) NOT NULL,
|
`TRIGGER_GROUP` varchar(200) NOT NULL,
|
||||||
|
@ -127,9 +127,9 @@ CREATE TABLE `qrtz_simple_triggers` (
|
||||||
`TIMES_TRIGGERED` bigint(10) NOT NULL,
|
`TIMES_TRIGGERED` bigint(10) NOT NULL,
|
||||||
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
||||||
CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
CONSTRAINT `qrtz_simple_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
CREATE TABLE `qrtz_simprop_triggers` (
|
CREATE TABLE `QRTZ_SIMPROP_TRIGGERS` (
|
||||||
`SCHED_NAME` varchar(120) NOT NULL,
|
`SCHED_NAME` varchar(120) NOT NULL,
|
||||||
`TRIGGER_NAME` varchar(200) NOT NULL,
|
`TRIGGER_NAME` varchar(200) NOT NULL,
|
||||||
`TRIGGER_GROUP` varchar(200) NOT NULL,
|
`TRIGGER_GROUP` varchar(200) NOT NULL,
|
||||||
|
@ -146,7 +146,7 @@ CREATE TABLE `qrtz_simprop_triggers` (
|
||||||
`BOOL_PROP_2` varchar(1) DEFAULT NULL,
|
`BOOL_PROP_2` varchar(1) DEFAULT NULL,
|
||||||
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`),
|
||||||
CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
CONSTRAINT `qrtz_simprop_triggers_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `qrtz_triggers` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
-- quartz end
|
-- quartz end
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ CREATE TABLE IF NOT EXISTS `schedule` (
|
||||||
`custom_data` longtext COMMENT 'Custom Data (JSON format)',
|
`custom_data` longtext COMMENT 'Custom Data (JSON format)',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `resource_id` ( `resource_id` )
|
KEY `resource_id` ( `resource_id` )
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
ALTER TABLE `api_test` DROP COLUMN `schedule`;
|
ALTER TABLE `api_test` DROP COLUMN `schedule`;
|
||||||
ALTER TABLE `load_test` DROP COLUMN `schedule`;
|
ALTER TABLE `load_test` DROP COLUMN `schedule`;
|
||||||
|
@ -172,4 +172,4 @@ ALTER TABLE `load_test_report` ADD `trigger_mode` varchar(64) NULL;
|
||||||
UPDATE `api_test_report` SET `trigger_mode` = 'MANUAL' WHERE 1;
|
UPDATE `api_test_report` SET `trigger_mode` = 'MANUAL' WHERE 1;
|
||||||
UPDATE `load_test_report` SET `trigger_mode` = 'MANUAL' WHERE 1;
|
UPDATE `load_test_report` SET `trigger_mode` = 'MANUAL' WHERE 1;
|
||||||
|
|
||||||
alter table test_case add sort int null comment 'Import test case sort';
|
alter table test_case add sort int null comment 'Import test case sort';
|
||||||
|
|
|
@ -9,5 +9,4 @@ CREATE TABLE IF NOT EXISTS `test_plan_load_case`
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
UNIQUE KEY `plan_load_case_id` (`test_plan_id`, `load_case_id`)
|
UNIQUE KEY `plan_load_case_id` (`test_plan_id`, `load_case_id`)
|
||||||
) ENGINE = InnoDB
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
|
@ -8,7 +8,5 @@ CREATE TABLE IF NOT EXISTS `auth_source` (
|
||||||
`name` varchar(60) DEFAULT NULL,
|
`name` varchar(60) DEFAULT NULL,
|
||||||
`type` varchar(30) DEFAULT NULL,
|
`type` varchar(30) DEFAULT NULL,
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,7 @@ CREATE TABLE IF NOT EXISTS `test_plan_report` (
|
||||||
`principal` VARCHAR ( 50 ) DEFAULT NULL COMMENT 'principal',
|
`principal` VARCHAR ( 50 ) DEFAULT NULL COMMENT 'principal',
|
||||||
PRIMARY KEY ( `id` ),
|
PRIMARY KEY ( `id` ),
|
||||||
UNIQUE KEY `executeInfoID` ( `test_plan_id`, `create_time` )
|
UNIQUE KEY `executeInfoID` ( `test_plan_id`, `create_time` )
|
||||||
)
|
) ENGINE = INNODB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = INNODB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `test_plan_report_data` (
|
CREATE TABLE IF NOT EXISTS `test_plan_report_data` (
|
||||||
`id` VARCHAR ( 50 ) NOT NULL COMMENT 'ID',
|
`id` VARCHAR ( 50 ) NOT NULL COMMENT 'ID',
|
||||||
|
@ -31,6 +29,4 @@ CREATE TABLE IF NOT EXISTS `test_plan_report_data` (
|
||||||
`issues_info` longtext COMMENT 'issues (JSON format)',
|
`issues_info` longtext COMMENT 'issues (JSON format)',
|
||||||
PRIMARY KEY ( `id` ),
|
PRIMARY KEY ( `id` ),
|
||||||
UNIQUE KEY `test_plan_report_id` ( `test_plan_report_id` )
|
UNIQUE KEY `test_plan_report_id` ( `test_plan_report_id` )
|
||||||
)
|
) ENGINE = INNODB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = INNODB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
|
@ -7,6 +7,5 @@ create table swagger_url_project
|
||||||
module_path varchar(255) null,
|
module_path varchar(255) null,
|
||||||
mode_id varchar(30) null,
|
mode_id varchar(30) null,
|
||||||
primary key (id)
|
primary key (id)
|
||||||
) ENGINE = InnoDB
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
|
|
|
@ -11,4 +11,4 @@ CREATE TABLE IF NOT EXISTS `api_test_environment` (
|
||||||
`custom_data` longtext COMMENT 'Custom Data (JSON format)',
|
`custom_data` longtext COMMENT 'Custom Data (JSON format)',
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `project_id` ( `project_id` )
|
KEY `project_id` ( `project_id` )
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
|
@ -7,8 +7,8 @@ CREATE TABLE IF NOT EXISTS `user_header`
|
||||||
type varchar(150) null,
|
type varchar(150) null,
|
||||||
constraint user_header_pk
|
constraint user_header_pk
|
||||||
primary key (id)
|
primary key (id)
|
||||||
) ENGINE = InnoDB
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
-- create table test_case_review_api_case
|
-- create table test_case_review_api_case
|
||||||
create table test_case_review_api_case
|
create table test_case_review_api_case
|
||||||
(
|
(
|
||||||
|
@ -20,8 +20,8 @@ create table test_case_review_api_case
|
||||||
create_time bigint(13) null,
|
create_time bigint(13) null,
|
||||||
update_time bigint(13) null,
|
update_time bigint(13) null,
|
||||||
primary key (id)
|
primary key (id)
|
||||||
) ENGINE = InnoDB
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
-- create table test_case_review_scenario
|
-- create table test_case_review_scenario
|
||||||
create table test_case_review_scenario
|
create table test_case_review_scenario
|
||||||
(
|
(
|
||||||
|
@ -36,8 +36,8 @@ create table test_case_review_scenario
|
||||||
last_result varchar(100) null,
|
last_result varchar(100) null,
|
||||||
report_id varchar(50) null,
|
report_id varchar(50) null,
|
||||||
primary key (id)
|
primary key (id)
|
||||||
) ENGINE = InnoDB
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
-- create table test_case_review_load
|
-- create table test_case_review_load
|
||||||
create table test_case_review_load
|
create table test_case_review_load
|
||||||
(
|
(
|
||||||
|
@ -49,8 +49,8 @@ create table test_case_review_load
|
||||||
update_time bigint(13) null,
|
update_time bigint(13) null,
|
||||||
load_report_id varchar(50) null,
|
load_report_id varchar(50) null,
|
||||||
primary key (id)
|
primary key (id)
|
||||||
) ENGINE = InnoDB
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
-- test_resource_pool add column
|
-- test_resource_pool add column
|
||||||
ALTER TABLE test_resource_pool ADD heap VARCHAR(200) NULL;
|
ALTER TABLE test_resource_pool ADD heap VARCHAR(200) NULL;
|
||||||
ALTER TABLE test_resource_pool ADD gc_algo VARCHAR(200) NULL;
|
ALTER TABLE test_resource_pool ADD gc_algo VARCHAR(200) NULL;
|
||||||
|
@ -170,8 +170,8 @@ CREATE TABLE IF NOT EXISTS `esb_api_params`
|
||||||
backed_script LONGTEXT null,
|
backed_script LONGTEXT null,
|
||||||
primary key (id),
|
primary key (id),
|
||||||
UNIQUE KEY `resource_id` (`resource_id`)
|
UNIQUE KEY `resource_id` (`resource_id`)
|
||||||
) ENGINE = InnoDB
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
-- add execution_times testPlan
|
-- add execution_times testPlan
|
||||||
alter table test_plan
|
alter table test_plan
|
||||||
add execution_times int null;
|
add execution_times int null;
|
||||||
|
@ -187,8 +187,7 @@ CREATE TABLE IF NOT EXISTS test_case_test
|
||||||
create_time bigint(13) null,
|
create_time bigint(13) null,
|
||||||
update_time bigint(13) null,
|
update_time bigint(13) null,
|
||||||
UNIQUE KEY test_case_test_unique_key (test_case_id, test_id)
|
UNIQUE KEY test_case_test_unique_key (test_case_id, test_id)
|
||||||
) ENGINE = InnoDB
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci COMMENT ='测试用例和关联用例的关系表';
|
||||||
DEFAULT CHARSET = utf8mb4 COMMENT ='测试用例和关联用例的关系表';
|
|
||||||
|
|
||||||
alter table test_case
|
alter table test_case
|
||||||
modify test_id varchar(2000) null;
|
modify test_id varchar(2000) null;
|
||||||
|
@ -207,8 +206,8 @@ create table system_header
|
||||||
type varchar(150) null,
|
type varchar(150) null,
|
||||||
props varchar(1000) null
|
props varchar(1000) null
|
||||||
|
|
||||||
)ENGINE = InnoDB
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
-- init system_header
|
-- init system_header
|
||||||
insert into system_header (type, props)
|
insert into system_header (type, props)
|
||||||
values ('api_scenario_list',
|
values ('api_scenario_list',
|
||||||
|
|
|
@ -14,9 +14,7 @@ CREATE TABLE IF NOT EXISTS `custom_field` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
-- 用例系统字段
|
-- 用例系统字段
|
||||||
INSERT INTO custom_field (id,name,scene,`type`,remark,`options`,`system`,`global`,workspace_id,create_time,update_time)
|
INSERT INTO custom_field (id,name,scene,`type`,remark,`options`,`system`,`global`,workspace_id,create_time,update_time)
|
||||||
|
@ -58,9 +56,7 @@ CREATE TABLE IF NOT EXISTS `test_case_template` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
-- 系统模板
|
-- 系统模板
|
||||||
INSERT INTO test_case_template (id,name,`type`,description,case_name,prerequisite,step_description,expected_result,actual_result,`system`,`global`,workspace_id,create_time,update_time)
|
INSERT INTO test_case_template (id,name,`type`,description,case_name,prerequisite,step_description,expected_result,actual_result,`system`,`global`,workspace_id,create_time,update_time)
|
||||||
|
@ -80,9 +76,7 @@ CREATE TABLE IF NOT EXISTS `issue_template` (
|
||||||
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
|
||||||
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
-- 系统模板
|
-- 系统模板
|
||||||
INSERT INTO issue_template (id,`name`,platform,description,title,`global`,`system`,workspace_id,content,create_time,update_time)
|
INSERT INTO issue_template (id,`name`,platform,description,title,`global`,`system`,workspace_id,content,create_time,update_time)
|
||||||
|
@ -109,9 +103,7 @@ CREATE TABLE IF NOT EXISTS `custom_field_template` (
|
||||||
`default_value` varchar(30) DEFAULT NULL COMMENT 'Default value',
|
`default_value` varchar(30) DEFAULT NULL COMMENT 'Default value',
|
||||||
`custom_data` varchar(255) DEFAULT NULL COMMENT 'Custom data',
|
`custom_data` varchar(255) DEFAULT NULL COMMENT 'Custom data',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
)
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
ENGINE = InnoDB
|
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
-- 系统用例模板关联系统字段
|
-- 系统用例模板关联系统字段
|
||||||
INSERT INTO custom_field_template (id,field_id,template_id,scene,required,default_value)
|
INSERT INTO custom_field_template (id,field_id,template_id,scene,required,default_value)
|
||||||
|
@ -172,8 +164,7 @@ CREATE TABLE IF NOT EXISTS `mock_config`
|
||||||
primary key (id),
|
primary key (id),
|
||||||
INDEX `api_id` (`api_id`) USING BTREE,
|
INDEX `api_id` (`api_id`) USING BTREE,
|
||||||
INDEX `project_id` (`project_id`) USING BTREE
|
INDEX `project_id` (`project_id`) USING BTREE
|
||||||
) ENGINE = InnoDB
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `mock_expect_config`
|
CREATE TABLE IF NOT EXISTS `mock_expect_config`
|
||||||
(
|
(
|
||||||
|
@ -189,8 +180,7 @@ CREATE TABLE IF NOT EXISTS `mock_expect_config`
|
||||||
create_user_id VARCHAR(64) null,
|
create_user_id VARCHAR(64) null,
|
||||||
primary key (id),
|
primary key (id),
|
||||||
INDEX `mock_config_id` (`mock_config_id`) USING BTREE
|
INDEX `mock_config_id` (`mock_config_id`) USING BTREE
|
||||||
) ENGINE = InnoDB
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
-- module management
|
-- module management
|
||||||
INSERT INTO system_parameter (param_key, param_value, type, sort)
|
INSERT INTO system_parameter (param_key, param_value, type, sort)
|
||||||
|
|
|
@ -23,8 +23,7 @@ CREATE TABLE `operating_log`
|
||||||
`oper_params` longtext COMMENT 'operating params',
|
`oper_params` longtext COMMENT 'operating params',
|
||||||
`oper_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
`oper_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
|
||||||
PRIMARY KEY (`id`)
|
PRIMARY KEY (`id`)
|
||||||
) ENGINE = InnoDB
|
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
DEFAULT CHARSET = utf8mb4;
|
|
||||||
|
|
||||||
-- system_parameter
|
-- system_parameter
|
||||||
UPDATE system_parameter
|
UPDATE system_parameter
|
||||||
|
|
Loading…
Reference in New Issue