refactor: migrate sql增加超时时间。

This commit is contained in:
liqiang-fit2cloud 2023-01-30 14:01:55 +08:00
parent 1a378b3eab
commit c9ef324876
3 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,4 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- 场景报告状态统一调整 -- 场景报告状态统一调整
-- 失败状态 -- 失败状态
update api_scenario_report set status ='ERROR' where status in ('Error','Timeout','Fail'); update api_scenario_report set status ='ERROR' where status in ('Error','Timeout','Fail');

View File

@ -1,3 +1,5 @@
SET SESSION innodb_lock_wait_timeout = 7200;
ALTER TABLE api_execution_info ADD project_id VARCHAR ( 50 ) NULL; ALTER TABLE api_execution_info ADD project_id VARCHAR ( 50 ) NULL;
ALTER TABLE api_execution_info ADD execute_type VARCHAR ( 50 ) NULL; ALTER TABLE api_execution_info ADD execute_type VARCHAR ( 50 ) NULL;
ALTER TABLE api_execution_info ADD version VARCHAR ( 255 ) NULL; ALTER TABLE api_execution_info ADD version VARCHAR ( 255 ) NULL;

View File

@ -1,3 +1,5 @@
SET SESSION innodb_lock_wait_timeout = 7200;
-- --
-- 增加一个索引 -- 增加一个索引
SELECT IF(EXISTS(SELECT DISTINCT index_name SELECT IF(EXISTS(SELECT DISTINCT index_name