chore: S QL优化
This commit is contained in:
parent
b16dad62c2
commit
c268cf20f5
|
@ -150,8 +150,23 @@ CREATE INDEX idx_plan ON api_scenario_report(`plan`);
|
|||
ALTER table test_plan_config
|
||||
ADD COLUMN `case_run_mode` VARCHAR(50) NOT NULL DEFAULT 'PARALLEL' COMMENT '不同用例之间的执行方式(串行/并行)';
|
||||
-- 修改默认资源池id
|
||||
UPDATE project_test_resource_pool set test_resource_pool_id = '100001100001' WHERE test_resource_pool_id IN (SELECT id FROM test_resource_pool where `name`= '默认资源池');
|
||||
UPDATE project_application set type_value = '100001100001' WHERE type_value IN (SELECT id FROM test_resource_pool where `name`= '默认资源池');
|
||||
UPDATE project_test_resource_pool AS ptrp
|
||||
JOIN test_resource_pool AS trp ON ptrp.test_resource_pool_id = trp.id
|
||||
SET ptrp.test_resource_pool_id = '100001100001'
|
||||
WHERE
|
||||
trp.`name` = '默认资源池';
|
||||
|
||||
UPDATE project_application AS pa
|
||||
JOIN test_resource_pool AS trp ON pa.type_value = trp.id
|
||||
SET pa.type_value = '100001100001'
|
||||
WHERE
|
||||
trp.`name` = '默认资源池';
|
||||
|
||||
UPDATE test_resource_pool_blob AS trpb
|
||||
JOIN test_resource_pool AS trp ON trpb.id = trp.id
|
||||
SET trpb.id = '100001100001'
|
||||
WHERE
|
||||
trp.`name` = '默认资源池';
|
||||
|
||||
-- 默认资源池固定ID
|
||||
update test_resource_pool set id ='100001100001' where `name`= '默认资源池';
|
||||
|
|
Loading…
Reference in New Issue