build: flyway 调整

This commit is contained in:
CaptainB 2022-03-08 11:05:56 +08:00 committed by 刘瑞斌
parent 1e371ea3da
commit af7358c89e
1 changed files with 4 additions and 2 deletions

View File

@ -470,7 +470,8 @@ BEGIN
test_case_template
WHERE custom_field.id LIKE CONCAT(fieldId, '%')
AND test_case_template.id LIKE CONCAT(templateId, '%')
AND (custom_field.project_id = test_case_template.project_id OR custom_field.project_id = 'global');
AND (custom_field.project_id = test_case_template.project_id OR custom_field.project_id = 'global' OR
test_case_template.project_id = 'global');
INSERT INTO custom_field_template(id, field_id, template_id, scene, required, `order`, default_value,
custom_data, `key`)
@ -487,7 +488,8 @@ BEGIN
issue_template
WHERE custom_field.id LIKE CONCAT(fieldId, '%')
AND issue_template.id LIKE CONCAT(templateId, '%')
AND (custom_field.project_id = issue_template.project_id OR custom_field.project_id = 'global');
AND (custom_field.project_id = issue_template.project_id OR custom_field.project_id = 'global' OR
issue_template.project_id = 'global');
END LOOP;
CLOSE cursor1;