build: flyway 增加超时配置

This commit is contained in:
CaptainB 2023-02-01 10:47:24 +08:00 committed by 刘瑞斌
parent 17dc11a340
commit 865b99ddd4
133 changed files with 412 additions and 62 deletions

View File

@ -1,5 +1,10 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE load_test_report
MODIFY name VARCHAR(255) NOT NULL;
ALTER TABLE load_test_report
MODIFY test_name VARCHAR(255) NULL;
MODIFY test_name VARCHAR(255) NULL;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
--
-- 增加一个索引
SELECT IF(EXISTS(SELECT DISTINCT index_name
@ -10,4 +11,7 @@ SELECT IF(EXISTS(SELECT DISTINCT index_name
INTO @a;
PREPARE stmt1 FROM @a;
EXECUTE stmt1;
DEALLOCATE PREPARE stmt1;
DEALLOCATE PREPARE stmt1;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,6 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- 更改状态
update enterprise_test_report set status ='SEND_FAILED' where status = 'SEND_FAILD';
update enterprise_test_report set status ='SEND_FAILED' where status = 'SEND_FAILD';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- ws admin
insert into user_group_permission (id, group_id, permission_id, module_id)
values (UUID(), 'ws_admin', 'WORKSPACE_PROJECT_ENVIRONMENT:READ+CREATE_GROUP', 'WORKSPACE_PROJECT_ENVIRONMENT');
@ -19,3 +20,5 @@ values (UUID(), 'admin', 'SYSTEM_PLUGIN:UPLOAD', 'SYSTEM_PLUGIN');
insert into user_group_permission (id, group_id, permission_id, module_id)
values (UUID(), 'admin', 'SYSTEM_PLUGIN:DEL', 'SYSTEM_PLUGIN');
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,4 +1,6 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- 修复数据
update test_plan set repeat_case = 0 where repeat_case is null;
alter table environment_group_project drop column description;
alter table environment_group_project drop column description;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE api_definition_exec_result
MODIFY COLUMN name VARCHAR (255);
MODIFY COLUMN name VARCHAR (255);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- 新增字段
ALTER TABLE `swagger_url_project`
ADD COLUMN `config` longtext COMMENT '鉴权配置信息' AFTER `mode_id`;
@ -105,3 +106,5 @@ CREATE TABLE IF NOT EXISTS `api_execution_queue_detail`
ALTER TABLE load_test
MODIFY name VARCHAR(255) NOT NULL COMMENT 'Test name';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE IF NOT EXISTS `error_report_library` (
`id` varchar(50) NOT NULL COMMENT 'Test ID',
`project_id` varchar(50) NOT NULL COMMENT 'Project ID this report belongs to',
@ -26,4 +27,5 @@ VALUES (uuid(), 'admin', 'PROJECT_ERROR_REPORT_LIBRARY:READ+CREATE', 'PROJECT_ER
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
VALUES (uuid(), 'admin', 'PROJECT_ERROR_REPORT_LIBRARY:READ+EDIT', 'PROJECT_ERROR_REPORT_LIBRARY');
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
VALUES (uuid(), 'admin', 'PROJECT_ERROR_REPORT_LIBRARY:READ+DELETE', 'PROJECT_ERROR_REPORT_LIBRARY');
VALUES (uuid(), 'admin', 'PROJECT_ERROR_REPORT_LIBRARY:READ+DELETE', 'PROJECT_ERROR_REPORT_LIBRARY');
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,6 +1,9 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE test_plan_report_content ADD plan_scenario_report_struct longtext NULL;
ALTER TABLE test_plan_report_content ADD plan_api_case_report_struct longtext NULL;
ALTER TABLE test_plan_report_content ADD plan_load_case_report_struct longtext NULL;
ALTER TABLE api_execution_queue ADD failure TINYINT(1);
CREATE INDEX api_scenario_report_result_report_id_IDX ON api_scenario_report_result (report_id);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- permission
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
VALUES ('36c05551-5195-4cb8-98d4-737f15ffe0bb', 'project_admin', 'PROJECT_VERSION:READ+DELETE', 'PROJECT_VERSION');
@ -241,3 +242,5 @@ WHERE custom_num IS NULL
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1 +1,3 @@
alter table api_execution_queue_detail add index queue_id_test_id_index(queue_id,test_id);
SET SESSION innodb_lock_wait_timeout = 7200;
alter table api_execution_queue_detail add index queue_id_test_id_index(queue_id,test_id);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE `operating_log` ADD INDEX oper_time_index ( `oper_time` );
CREATE TABLE `operating_log_resource`
@ -179,3 +180,5 @@ set t.project_id = atc.project_id where atc.id = t.resource_id;
update api_scenario_report set report_type = 'SCENARIO_INTEGRATED' where scenario_id like '[%';
update api_scenario_report set report_type = 'SCENARIO_INDEPENDENT' where report_type is null;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,6 +1,9 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE `api_definition_exec_result` ADD INDEX projectIdIndex ( `project_id` );
ALTER TABLE `api_scenario_report` ADD INDEX projectIdIndex ( `project_id` );
ALTER TABLE `api_scenario_report` ADD INDEX projectIdexectypeIndex ( `project_id`,`execute_type` );
-- module management
INSERT INTO system_parameter (param_key, param_value, type, sort)
VALUES ('metersphere.module.workstation', 'ENABLE', 'text', 1);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE `schedule` ADD `workspace_id` varchar(50) NOT NULL COMMENT 'Workspace ID this schedule belongs to';
ALTER TABLE `schedule` ADD `create_time` bigint(13) NULL COMMENT 'Create timestamp';
ALTER TABLE `schedule` ADD `update_time` bigint(13) NULL COMMENT 'Update timestamp';
@ -14,4 +15,5 @@ ON api_test.project_id = project.id
SET schedule.workspace_id = result.workspace_id,
schedule.create_time = result.create_time,
schedule.update_time = result.update_time
WHERE schedule.resource_id = result.resource_id;
WHERE schedule.resource_id = result.resource_id;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
DROP PROCEDURE IF EXISTS project_api_appl;
DELIMITER //
@ -701,4 +702,5 @@ WHERE group_id = 'project_app_manager';
ALTER TABLE `test_plan_report_content` ADD COLUMN `un_execute_cases` LONGTEXT COMMENT '未执行状态接口用例';
ALTER TABLE `test_plan_report_content` ADD COLUMN `un_execute_scenarios` LONGTEXT COMMENT '未执行状态场景用例';
ALTER TABLE `test_plan_report_content` ADD COLUMN `un_execute_scenarios` LONGTEXT COMMENT '未执行状态场景用例';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
DROP PROCEDURE IF EXISTS schema_change_api;
DELIMITER //
@ -121,3 +122,5 @@ CREATE PROCEDURE schema_change() BEGIN
END//
DELIMITER ;
CALL schema_change();
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE test_plan
MODIFY name VARCHAR(128) NOT NULL COMMENT 'Plan name';
@ -14,3 +15,5 @@ DELIMITER ;
CALL schema_change_api();
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE test_plan_report
MODIFY name varchar(128) NULL COMMENT 'name';
@ -39,4 +40,5 @@ CREATE PROCEDURE schema_change_api() BEGIN
END IF;
END//
DELIMITER ;
CALL schema_change_api();
CALL schema_change_api();
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE `ui_scenario_module`
(
`id` varchar(50) NOT NULL COMMENT 'ui scenario node ID',
@ -306,3 +307,5 @@ UPDATE system_parameter SET param_value = 'http://local-selenium-grid:4444' WHER
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE `user` ADD selenium_server varchar(255) DEFAULT '';
-- start 2022.05.11 jar包支持项目级别和工作空间级别可见
@ -13,4 +14,5 @@ DELETE FROM jar_config WHERE resource_id = '';
-- end
-- V116_1-20-2_user_group_permission 插入UI配置权限给项目管理员
INSERT INTO user_group_permission (id, group_id, permission_id, module_id) VALUES (uuid(), 'project_admin', 'PERSONAL_INFORMATION:READ+UI_SETTING', 'PERSONAL_INFORMATION');
INSERT INTO user_group_permission (id, group_id, permission_id, module_id) VALUES (uuid(), 'project_admin', 'PERSONAL_INFORMATION:READ+UI_SETTING', 'PERSONAL_INFORMATION');
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- V117_v1-20-3_ui-element-permission
-- start
@ -16,3 +17,5 @@ values (UUID(), 'project_member', 'PROJECT_UI_ELEMENT:READ+IMPORT', 'PROJECT_UI_
insert into user_group_permission (id, group_id, permission_id, module_id)
values (UUID(), 'project_member', 'PROJECT_UI_ELEMENT:READ+EXPORT', 'PROJECT_UI_ELEMENT');
-- end
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- 初始化 sql
-- 创建 性能测试报告和文件的关联
-- start
@ -48,4 +49,5 @@ DELIMITER ;
CALL load_test_report_file_add();
DROP PROCEDURE IF EXISTS load_test_report_file_add;
-- end
-- end
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- 初始化 sql
-- start V119_1-20-5_ws_permission
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
@ -53,4 +54,5 @@ VALUES (UUID(), 'project_member', 'PROJECT_TRACK_CASE:READ+GENERATE_DEPENDENCIES
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
VALUES (UUID(), 'project_member', 'PROJECT_TRACK_CASE:READ+BATCH_ADD_PUBLIC', 'PROJECT_TRACK_CASE');
-- end
-- end
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,5 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE test_case
ADD other_test_name varchar(200);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- 初始化 sql
-- V120_1-20-6_test_case_modify
-- test_case 列表查询性能优化
@ -28,4 +29,5 @@ SET test_case_review_test_case.is_del = 1;
-- V120_1-20-6_log
-- 日志记录表添加索引
ALTER TABLE `operating_log`
ADD INDEX oper_project_id (`project_id`);
ADD INDEX oper_project_id (`project_id`);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- 初始化 sql
-- V121_1-20-8_clear_test_case_node
@ -10,3 +11,5 @@ DELETE FROM test_case_node WHERE `level` = 0;
-- 由于公共用例查询SQL排序字段未使用原本的联合索引
-- 需新加一个联合索引
ALTER TABLE test_case ADD INDEX test_case_public_order_index(`case_public`, `order`);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,5 +1,8 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- 初始化 sql
-- V122_2-1-0_swagger_url_project
ALTER TABLE swagger_url_project ADD COLUMN cover_module TINYINT(1) DEFAULT 0 COMMENT '是否覆盖模块';
update swagger_url_project set mode_id='incrementalMerge' where mode_id='不覆盖';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- 初始化V2.0.0
-- V117_v1-20-3_custom_field
-- 存储用例的自定义字段值
@ -251,3 +252,5 @@ CREATE TABLE IF NOT EXISTS `attachment_module_relation`
COLLATE = utf8mb4_general_ci;
ALTER TABLE test_plan_report_content ADD COLUMN `ui_all_cases` LONGTEXT COMMENT 'ui all cases (JSON format)';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
--
-- V2_sync_supplementary_data
-- 查出所有不重复的项目ID 循环项目ID 给 project_application 表设置默认值
@ -269,3 +270,5 @@ VALUES (UUID(), 'project_admin', 'PROJECT_TRACK_CASE:READ+BATCH_LINK_DEMAND', 'P
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
VALUES (UUID(), 'project_member', 'PROJECT_TRACK_CASE:READ+BATCH_LINK_DEMAND', 'PROJECT_TRACK_CASE');
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
--
-- V127__2-0-1_add_test_plan_ui_fail_cases
ALTER TABLE test_plan_report_content ADD COLUMN `ui_failure_cases` LONGTEXT COMMENT 'ui failure cases (JSON format)';
@ -5,3 +6,5 @@ ALTER TABLE test_plan_report_content ADD COLUMN `ui_failure_cases` LONGTEXT COMM
--
-- V128__2-0-1_update_api_scenario_last_result
UPDATE api_scenario set last_result='' where last_result IS NULL;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- V128__2-1-0_update_api_scenario_load_report
--
ALTER TABLE `api_definition_exec_result`
@ -236,3 +237,5 @@ CREATE TABLE `file_module`
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE load_test_report
ADD load_configuration LONGTEXT NULL;
ADD load_configuration LONGTEXT NULL;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- v2_2 init
-- v2_2_init_ui_share_report_time
-- 工单名称: v2_2_init_ui_share_report_time
@ -156,3 +157,5 @@ ALTER TABLE `ui_scenario_module` ADD COLUMN scenario_type VARCHAR(100) NOT NULL
ALTER TABLE `attachment_module_relation` MODIFY COLUMN attachment_id VARCHAR(50) NULL;
ALTER TABLE `attachment_module_relation` ADD COLUMN file_metadata_ref_id VARCHAR(50) DEFAULT NULL COMMENT 'FILE ASSOCIATION ID';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- v2_3 init
-- V2_3_micro_service_module
-- 工单名称: V2_3_micro_service_module
@ -35,4 +36,5 @@ SELECT UUID(), id, 'PROJECT_ERROR_REPORT_LIBRARY:READ+BATCH_DELETE', 'PROJECT_ER
FROM `group`
WHERE type = 'PROJECT'
AND `group`.id IN
(SELECT group_id FROM user_group_permission WHERE permission_id = 'PROJECT_ERROR_REPORT_LIBRARY:READ');
(SELECT group_id FROM user_group_permission WHERE permission_id = 'PROJECT_ERROR_REPORT_LIBRARY:READ');
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- v2.4.0 init
--
-- 通知表时间加索引
@ -19,4 +20,5 @@ WHERE type = 'PROJECT'
-- 是否是企业版插件
ALTER TABLE plugin ADD xpack TINYINT(1) NULL COMMENT 'Is xpack plugin';
-- 插件的使用场景
ALTER TABLE plugin ADD scenario varchar(50) NOT NULL COMMENT 'Plugin usage scenarios';
ALTER TABLE plugin ADD scenario varchar(50) NOT NULL COMMENT 'Plugin usage scenarios';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- v2_5_modify_workspace_name_length
-- 创建人 liyuhao
-- 创建时间 2022-11-29 13:19:51
@ -108,3 +109,5 @@ DROP PROCEDURE IF EXISTS init_super_permission;
INSERT INTO `group` (id, name, description, `system`, type, create_time, update_time, creator, scope_id)
VALUES ('super_group', '超级管理员(系统)', '拥有系统全部工作空间以及项目的操作权限', 1, 'SYSTEM', UNIX_TIMESTAMP() * 1000,
UNIX_TIMESTAMP() * 1000, 'system', 'system');
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- 清理超级用户组权限信息,改为默认拥有全部权限
delete from user_group_permission where group_id = 'super_group';
delete from user_group_permission where group_id = 'super_group';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
create table service_integration
(
id varchar(50) not null,
@ -29,3 +30,5 @@ create table if not exists issues
lastmodify varchar(50) null,
platform varchar(50) null
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
alter table project add tapd_id varchar(50) null;
alter table project add jira_key varchar(50) null;
alter table project add jira_key varchar(50) null;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE IF NOT EXISTS `quota`
(
`id` varchar(50) NOT NULL,
@ -12,3 +13,5 @@ CREATE TABLE IF NOT EXISTS `quota`
`update_time` bigint(13) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE test_case MODIFY COLUMN node_path varchar(999) NOT NULL COMMENT 'Node path this case belongs to' ;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
create table if not exists test_plan_project
(
test_plan_id varchar(50) null,
@ -7,3 +8,5 @@ create table if not exists test_plan_project
) 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;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE IF NOT EXISTS `notice`(
`EVENT` VARCHAR(100) NOT NULL,
`TEST_ID` VARCHAR(100) NOT NULL,
@ -6,3 +7,5 @@ CREATE TABLE IF NOT EXISTS `notice`(
`ENABLE` VARCHAR(40) NOT NULL
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1 +1,3 @@
ALTER TABLE `api_test_environment` ADD `hosts` longtext COMMENT 'hosts ';
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE `api_test_environment` ADD `hosts` longtext COMMENT 'hosts ';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE `license` (
`id` varchar(50) NOT NULL COMMENT 'ID',
`create_time` bigint(13) NOT NULL COMMENT 'Create timestamp',
@ -5,3 +6,5 @@ CREATE TABLE `license` (
`license_code` longtext DEFAULT NULL COMMENT 'license_code',
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1 +1,3 @@
alter table test_plan drop column project_id;
SET SESSION innodb_lock_wait_timeout = 7200;
alter table test_plan drop column project_id;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,4 +1,7 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE api_test_environment MODIFY COLUMN protocol varchar(20) NULL COMMENT 'Api Test Protocol';
ALTER TABLE api_test_environment MODIFY COLUMN socket varchar(225) NULL COMMENT 'Api Test Socket';
ALTER TABLE api_test_environment MODIFY COLUMN `domain` varchar(225) NULL COMMENT 'Api Test Domain';
ALTER TABLE api_test_environment CHANGE custom_data `config` longtext COMMENT 'Config Data (JSON format)';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
create table if not exists test_case_comment
(
id varchar(64) not null
@ -52,3 +53,5 @@ create table if not exists test_case_review_users
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,4 +1,7 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE test_plan ADD planned_start_time bigint(13) NULL COMMENT 'Planned start time timestamp';
ALTER TABLE test_plan ADD planned_end_time bigint(13) NULL COMMENT 'Planned end time timestamp';
ALTER TABLE test_plan ADD actual_start_time bigint(13) NULL COMMENT 'Actual start time timestamp';
ALTER TABLE test_plan ADD actual_end_time bigint(13) NULL COMMENT 'Actual end time timestamp';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
INSERT into system_parameter values('base.url', 'http://localhost:8081', 'text', 1);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE notice
ADD COLUMN id VARCHAR(50);
UPDATE notice
@ -7,4 +8,5 @@ ALTER TABLE notice
ALTER TABLE notice
DROP COLUMN EMAIL;
ALTER TABLE notice
ADD COLUMN type VARCHAR(100) DEFAULT 'EMAIL';
ADD COLUMN type VARCHAR(100) DEFAULT 'EMAIL';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE notice
ADD user_id VARCHAR(50) NULL;
UPDATE notice
@ -7,4 +8,5 @@ SET notice.user_id = (
WHERE notice.NAME = user.name
);
ALTER TABLE notice
DROP COLUMN name;
DROP COLUMN name;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,5 @@
SET SESSION innodb_lock_wait_timeout = 7200;
alter table test_case add review_status varchar(25) null;
update test_case set review_status = 'Prepare' where review_status is null;
update test_case set review_status = 'Prepare' where review_status is null;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE test_case
MODIFY maintainer varchar(50) NOT NULL COMMENT 'Test case maintainer';
MODIFY maintainer varchar(50) NOT NULL COMMENT 'Test case maintainer';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE IF NOT EXISTS `file_content` (
`file_id` varchar(64) NOT NULL COMMENT 'File ID',
`file` longblob COMMENT 'File content',
@ -300,3 +301,5 @@ CREATE TABLE IF NOT EXISTS `test_case_report` (
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
create table if not exists test_case_file
(
case_id varchar(64) null,
@ -5,3 +6,5 @@ create table if not exists test_case_file
constraint test_case_file_unique_key
unique (case_id, file_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE IF NOT EXISTS message_task
(
id varchar(50) NOT NULL,
@ -11,4 +12,5 @@ CREATE TABLE IF NOT EXISTS message_task
)
ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE utf8mb4_general_ci;
COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1 +1,3 @@
alter table test_case modify prerequisite varchar(500) null comment 'Test case prerequisite condition';
SET SESSION innodb_lock_wait_timeout = 7200;
alter table test_case modify prerequisite varchar(500) null comment 'Test case prerequisite condition';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,4 +1,6 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE message_task
ADD identification varchar(255) NOT NULL;
ALTER TABLE message_task
ADD is_set tinyint(1) NOT NULL;
ADD is_set tinyint(1) NOT NULL;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE IF NOT EXISTS `jar_config` (
`id` varchar(50) NOT NULL COMMENT 'ID',
`name` varchar(64) NOT NULL COMMENT 'Name',
@ -11,3 +12,5 @@ CREATE TABLE IF NOT EXISTS `jar_config` (
`update_time` bigint(13) NOT NULL COMMENT 'Update timestamp',
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
alter table test_plan
add creator varchar(255) not null;
add creator varchar(255) not null;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
alter table message_task
add organization_id varchar(255) null;
add organization_id varchar(255) null;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE `test_plan_test_case` ADD INDEX index_name ( `case_id` );
ALTER TABLE `test_case_review_test_case` ADD INDEX index_name ( `case_id` );
ALTER TABLE `test_case_review_test_case` ADD INDEX index_name ( `case_id` );
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE message_task
ADD test_id varchar(50) NULL;
ADD test_id varchar(50) NULL;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE message_task
ADD create_time bigint(13) DEFAULT 0;
ADD create_time bigint(13) DEFAULT 0;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
INSERT INTO user (id, name, email, password, status, create_time, update_time, language, last_workspace_id, last_organization_id, phone)
VALUES ('admin', 'Administrator', 'admin@metersphere.io', md5('metersphere'), '1', unix_timestamp() * 1000, unix_timestamp() * 1000, NULL, '', NULL,
NULL);
@ -43,3 +44,5 @@ INSERT INTO test_case_report_template (id, name, content)
VALUES (uuid(), 'default', '{\"components\": [1,2,3,4,5]}');
INSERT INTO system_parameter (param_key, param_value, type, sort)
VALUES ('default.language', 'zh_CN', 'text', 5);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
alter table test_case_node add pos double null;
DROP PROCEDURE IF EXISTS pos_cursor;
@ -55,4 +56,5 @@ END //
DELIMITER ;
CALL pos_cursor();
DROP PROCEDURE IF EXISTS pos_cursor;
DROP PROCEDURE IF EXISTS pos_cursor;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
INSERT INTO system_parameter (param_key, param_value, type, sort)
VALUES ('ui.loginImage', NULL, 'file', 3);
INSERT INTO system_parameter (param_key, param_value, type, sort)
@ -7,4 +8,5 @@ VALUES ('ui.loginTitle', '', 'text', 4);
INSERT INTO system_parameter (param_key, param_value, type, sort)
VALUES ('ui.logo', NULL, 'file', 1);
INSERT INTO system_parameter (param_key, param_value, type, sort)
VALUES ('ui.title', '', 'text', 5);
VALUES ('ui.title', '', 'text', 5);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE load_test_report
ADD file_id VARCHAR(50) NULL;
ADD file_id VARCHAR(50) NULL;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
INSERT INTO role (id, name, description, type, create_time, update_time)
VALUES ('org_member', '组织成员', NULL, NULL, unix_timestamp() * 1000, unix_timestamp() * 1000);
VALUES ('org_member', '组织成员', NULL, NULL, unix_timestamp() * 1000, unix_timestamp() * 1000);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1 +1,3 @@
alter table project add zentao_id varchar(50) null;
SET SESSION innodb_lock_wait_timeout = 7200;
alter table project add zentao_id varchar(50) null;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,4 +1,6 @@
SET SESSION innodb_lock_wait_timeout = 7200;
alter table issues drop primary key;
alter table issues
add constraint issues_pk
primary key (id, platform);
primary key (id, platform);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE IF NOT EXISTS `api_data_view`
(
id varchar(50) NOT NULL primary key,
@ -10,3 +11,5 @@ CREATE TABLE IF NOT EXISTS `api_data_view`
create_time timestamp default CURRENT_TIMESTAMP NOT NULL,
update_time timestamp default CURRENT_TIMESTAMP NOT NULL
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE message_task
MODIFY identification varchar(50) NOT NULL;
@ -10,4 +11,5 @@ ALTER TABLE message_task
ALTER TABLE message_task
ADD template TEXT NULL;
DROP TABLE IF EXISTS notice;
DROP TABLE IF EXISTS notice;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1 +1,3 @@
alter table user add last_project_id varchar(50) null;
SET SESSION innodb_lock_wait_timeout = 7200;
alter table user add last_project_id varchar(50) null;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE `user_key` (
`id` varchar(50) NOT NULL DEFAULT '' COMMENT 'user_key ID',
`user_id` varchar(50) NOT NULL COMMENT '用户ID',
@ -10,3 +11,5 @@ CREATE TABLE `user_key` (
KEY `IDX_USER_ID` (`user_id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE test_plan ADD api_ids varchar(1000) NULL COMMENT 'Api id list';
ALTER TABLE test_plan ADD scenario_ids varchar(1000) NULL COMMENT 'Scenario id list';
@ -59,3 +60,5 @@ CREATE TABLE `api_scenario_report_detail` (
`content` longblob COMMENT 'Report Content',
PRIMARY KEY (`report_id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE IF NOT EXISTS `api_module` (
`id` varchar(50) NOT NULL COMMENT 'Test case node ID',
`project_id` varchar(50) NOT NULL COMMENT 'Project ID this node belongs to',
@ -67,3 +68,5 @@ ALTER TABLE `api_test_case` ADD INDEX ( `api_definition_id` );
ALTER TABLE `api_test_case` ADD INDEX ( `create_user_id` );
ALTER TABLE `api_test_case` ADD INDEX ( `update_user_id` );
ALTER TABLE `api_definition_exec_result` ADD INDEX ( `resource_id` );
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE IF NOT EXISTS `test_plan_api_case` (
`id` varchar(50) NOT NULL COMMENT 'ID',
`test_plan_id` varchar(50) NOT NULL COMMENT 'Test plan ID',
@ -27,3 +28,5 @@ CREATE TABLE IF NOT EXISTS `test_plan_api_scenario` (
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE api_definition_exec_result ADD `type` varchar(20) NULL;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1 +1,3 @@
ALTER TABLE api_scenario CHANGE tag_id tags varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'tag list';
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE api_scenario CHANGE tag_id tags varchar(2000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'tag list';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,2 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE test_resource_pool
ADD image VARCHAR(100) NULL;
ADD image VARCHAR(100) NULL;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,4 +1,7 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE api_scenario_report ADD scenario_name varchar(255) NULL;
ALTER TABLE api_scenario_report ADD scenario_id varchar(100) NULL;
ALTER TABLE test_plan DROP COLUMN api_ids;
ALTER TABLE test_plan DROP COLUMN scenario_ids;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,5 @@
SET SESSION innodb_lock_wait_timeout = 7200;
set @rownum=0;
update api_module set pos=(select @rownum := @rownum +1) where pos is null;
update api_scenario_module set pos=(select @rownum := @rownum +1) where pos is null;
update api_scenario_module set pos=(select @rownum := @rownum +1) where pos is null;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
alter table api_definition add num int null comment 'api definition ID';
alter table api_test_case add num int null comment 'api test case ID';
alter table api_scenario add num int null comment 'api scenario ID';
@ -122,4 +123,5 @@ END //
DELIMITER ;
CALL test_cursor1();
DROP PROCEDURE IF EXISTS test_cursor1;
DROP PROCEDURE IF EXISTS test_cursor1;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,5 @@
SET SESSION innodb_lock_wait_timeout = 7200;
create index project_workspace_id_index on project (workspace_id);
create index test_case_review_creator_index on test_case_review (creator);
create index test_case_review_project_project_id_index on test_case_review_project (project_id);
create index test_case_review_project_project_id_index on test_case_review_project (project_id);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
alter table test_plan add project_id varchar(50) null comment '测试计划所属项目';
ALTER TABLE api_test_case MODIFY COLUMN name varchar(255) NOT NULL COMMENT 'Test case name';
@ -53,4 +54,5 @@ END //
DELIMITER ;
CALL test_cursor();
DROP PROCEDURE IF EXISTS test_cursor;
DROP PROCEDURE IF EXISTS test_cursor;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- quartz start
CREATE TABLE `QRTZ_JOB_DETAILS` (
`SCHED_NAME` varchar(120) NOT NULL,
@ -173,3 +174,5 @@ UPDATE `api_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';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1 +1,3 @@
ALTER TABLE project ADD repeatable tinyint(1) DEFAULT null;
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE project ADD repeatable tinyint(1) DEFAULT null;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1 +1,3 @@
ALTER TABLE test_case MODIFY COLUMN name varchar(255) NOT NULL COMMENT 'Test case name';
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE test_case MODIFY COLUMN name varchar(255) NOT NULL COMMENT 'Test case name';
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE IF NOT EXISTS `test_plan_load_case`
(
`id` varchar(50) NOT NULL COMMENT 'ID',
@ -10,3 +11,5 @@ CREATE TABLE IF NOT EXISTS `test_plan_load_case`
PRIMARY KEY (`id`),
UNIQUE KEY `plan_load_case_id` (`test_plan_id`, `load_case_id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE api_definition
ADD tags VARCHAR(1000) NULL;
@ -5,4 +6,5 @@ ALTER TABLE api_test_case
ADD tags VARCHAR(1000) NULL;
ALTER TABLE test_case
ADD tags VARCHAR(1000) NULL;
ADD tags VARCHAR(1000) NULL;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE IF NOT EXISTS `auth_source` (
`id` varchar(50) NOT NULL,
`configuration` text NOT NULL,
@ -10,3 +11,5 @@ CREATE TABLE IF NOT EXISTS `auth_source` (
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
alter table load_test add num int null;
DROP PROCEDURE IF EXISTS test_cursor;
@ -49,3 +50,5 @@ DELIMITER ;
CALL test_cursor();
DROP PROCEDURE IF EXISTS test_cursor;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE IF NOT EXISTS `test_plan_report` (
`id` VARCHAR ( 50 ) NOT NULL COMMENT 'ID',
`test_plan_id` VARCHAR ( 50 ) NOT NULL COMMENT 'Test plan ID',
@ -30,3 +31,5 @@ CREATE TABLE IF NOT EXISTS `test_plan_report_data` (
PRIMARY KEY ( `id` ),
UNIQUE KEY `test_plan_report_id` ( `test_plan_report_id` )
) ENGINE = INNODB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
alter table test_case_review add project_id varchar(50) null comment '用例评审所属项目';
DROP PROCEDURE IF EXISTS test_cursor;
@ -52,4 +53,5 @@ END //
DELIMITER ;
CALL test_cursor();
DROP PROCEDURE IF EXISTS test_cursor;
DROP PROCEDURE IF EXISTS test_cursor;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE api_test_case drop COLUMN response;
ALTER TABLE api_test_case add COLUMN last_result_id varchar(64) COMMENT 'Last ApiDefinitionExecResult ID';
@ -26,3 +27,5 @@ INNER JOIN (
WHERE
tt.id = tc.id;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
create table swagger_url_project
(
id varchar(30) not null,
@ -9,3 +10,5 @@ create table swagger_url_project
primary key (id)
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
CREATE TABLE IF NOT EXISTS `api_test_environment` (
`id` varchar(50) NOT NULL COMMENT 'Api Test Environment ID',
`name` varchar(64) NOT NULL COMMENT 'Api Test Environment Name',
@ -12,3 +13,5 @@ CREATE TABLE IF NOT EXISTS `api_test_environment` (
PRIMARY KEY (`id`),
KEY `project_id` ( `project_id` )
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE utf8mb4_general_ci;
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1 +1,3 @@
ALTER TABLE test_plan_report ADD components VARCHAR (20);
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE test_plan_report ADD components VARCHAR (20);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

View File

@ -1 +1,3 @@
ALTER TABLE api_scenario MODIFY COLUMN id VARCHAR (120);
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE api_scenario MODIFY COLUMN id VARCHAR (120);
SET SESSION innodb_lock_wait_timeout = DEFAULT;

Some files were not shown because too many files have changed in this diff Show More