diff --git a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__beta_ddl.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__beta_ddl.sql index a8ddf64423..1f9dc33b10 100644 --- a/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__beta_ddl.sql +++ b/backend/framework/domain/src/main/resources/migration/3.0.0/ddl/V3.0.0_12__beta_ddl.sql @@ -131,12 +131,6 @@ CREATE UNIQUE INDEX idx_test_plan_report_id ON test_plan_report_bug(test_plan_re ALTER TABLE api_scenario_csv_step ADD scenario_id varchar(50) NOT NULL COMMENT '场景ID'; CREATE INDEX idx_scenario_id USING BTREE ON api_scenario_csv_step (scenario_id); --- 处理用例历史数据 -update functional_case set last_execute_result = 'PENDING' where last_execute_result = 'UN_EXECUTED'; -update functional_case set last_execute_result = 'SUCCESS' where last_execute_result = 'PASSED'; -update functional_case set last_execute_result = 'ERROR' where last_execute_result = 'FAILED'; -update functional_case set last_execute_result = 'PENDING' where last_execute_result = 'SKIPPED'; - -- set innodb lock wait timeout to default SET SESSION innodb_lock_wait_timeout = DEFAULT; diff --git a/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_12_1__data.sql b/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_12_1__data.sql new file mode 100644 index 0000000000..f247b25d1c --- /dev/null +++ b/backend/framework/domain/src/main/resources/migration/3.0.0/dml/V3.0.0_12_1__data.sql @@ -0,0 +1,11 @@ +-- set innodb lock wait timeout +SET SESSION innodb_lock_wait_timeout = 7200; + +-- 处理用例历史数据 +update functional_case set last_execute_result = 'PENDING' where last_execute_result = 'UN_EXECUTED'; +update functional_case set last_execute_result = 'SUCCESS' where last_execute_result = 'PASSED'; +update functional_case set last_execute_result = 'ERROR' where last_execute_result = 'FAILED'; +update functional_case set last_execute_result = 'PENDING' where last_execute_result = 'SKIPPED'; + +-- set innodb lock wait timeout to default +SET SESSION innodb_lock_wait_timeout = DEFAULT;