refactor(测试跟踪): 增加关联表索引

This commit is contained in:
CaptainB 2022-04-12 13:02:09 +08:00 committed by 刘瑞斌
parent cb4db5a073
commit 3a094212de
1 changed files with 14 additions and 1 deletions

View File

@ -15,4 +15,17 @@ update project set case_template_id = (
where `global` = 1
and `system` = 1
and project_id = 'global' limit 1
) where case_template_id is null or case_template_id = '';
) where case_template_id is null or case_template_id = '';
CREATE INDEX test_plan_test_case_plan_id_index
ON test_plan_test_case(plan_id);
CREATE INDEX custom_field_template_field_id_index
ON custom_field_template(field_id);
CREATE INDEX custom_field_template_template_id_index
ON custom_field_template(template_id);
CREATE INDEX test_case_review_test_case_review_id_index
ON test_case_review_test_case(review_id);