parent
26ae5c208a
commit
da9fa08cae
|
@ -179,8 +179,18 @@ CREATE TABLE IF NOT EXISTS `file_attachment_metadata`
|
||||||
COLLATE = utf8mb4_general_ci;
|
COLLATE = utf8mb4_general_ci;
|
||||||
|
|
||||||
-- V129_2-0-0_test_case_report_api_base_count
|
-- V129_2-0-0_test_case_report_api_base_count
|
||||||
ALTER TABLE `test_plan_report_content`
|
SELECT IF(EXISTS(SELECT DISTINCT COLUMN_NAME
|
||||||
ADD COLUMN `api_base_count` LONGTEXT COMMENT 'request (JSON format)';
|
FROM information_schema.columns
|
||||||
|
WHERE table_schema = DATABASE()
|
||||||
|
AND table_name = 'test_plan_report_content'
|
||||||
|
AND COLUMN_NAME = 'api_base_count'),
|
||||||
|
'select 1',
|
||||||
|
'ALTER TABLE `test_plan_report_content` ADD COLUMN `api_base_count` LONGTEXT')
|
||||||
|
INTO @add_api_base_count;
|
||||||
|
PREPARE stmt_add_api_base_count FROM @add_api_base_count;
|
||||||
|
EXECUTE stmt_add_api_base_count;
|
||||||
|
DEALLOCATE PREPARE stmt_add_api_base_count;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- V1_2-0-0_load_test_remember_environment
|
-- V1_2-0-0_load_test_remember_environment
|
||||||
ALTER TABLE `load_test`
|
ALTER TABLE `load_test`
|
||||||
|
@ -249,7 +259,8 @@ CREATE TABLE IF NOT EXISTS `attachment_module_relation`
|
||||||
CHARACTER SET = utf8mb4
|
CHARACTER SET = utf8mb4
|
||||||
COLLATE = utf8mb4_general_ci;
|
COLLATE = utf8mb4_general_ci;
|
||||||
|
|
||||||
ALTER TABLE test_plan_report_content ADD COLUMN `ui_all_cases` LONGTEXT COMMENT 'ui all cases (JSON format)';
|
ALTER TABLE test_plan_report_content
|
||||||
|
ADD COLUMN `ui_all_cases` LONGTEXT COMMENT 'ui all cases (JSON format)';
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -511,9 +522,12 @@ WHERE `type` = '';
|
||||||
|
|
||||||
--
|
--
|
||||||
-- 初始化attachment_module_relation数据
|
-- 初始化attachment_module_relation数据
|
||||||
INSERT INTO attachment_module_relation SELECT case_id, 'test_case', file_id FROM test_case_file;
|
INSERT INTO attachment_module_relation
|
||||||
|
SELECT case_id, 'test_case', file_id
|
||||||
|
FROM test_case_file;
|
||||||
-- 清空test_case_file表数据
|
-- 清空test_case_file表数据
|
||||||
DELETE FROM test_case_file;
|
DELETE
|
||||||
|
FROM test_case_file;
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
|
@ -526,10 +540,13 @@ VALUES (UUID(), 'project_member', 'PROJECT_TRACK_CASE:READ+BATCH_LINK_DEMAND', '
|
||||||
|
|
||||||
--
|
--
|
||||||
-- V127__2-0-1_add_test_plan_ui_fail_cases
|
-- 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)';
|
ALTER TABLE test_plan_report_content
|
||||||
|
ADD COLUMN `ui_failure_cases` LONGTEXT COMMENT 'ui failure cases (JSON format)';
|
||||||
|
|
||||||
--
|
--
|
||||||
-- V128__2-0-1_update_api_scenario_last_result
|
-- V128__2-0-1_update_api_scenario_last_result
|
||||||
UPDATE api_scenario set last_result='' where last_result IS NULL;
|
UPDATE api_scenario
|
||||||
|
set last_result=''
|
||||||
|
where last_result IS NULL;
|
||||||
|
|
||||||
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
SET SESSION innodb_lock_wait_timeout = DEFAULT;
|
||||||
|
|
Loading…
Reference in New Issue