diff --git a/backend/src/main/resources/db/migration/V68__modify_api_test_case.sql b/backend/src/main/resources/db/migration/V68__modify_api_test_case.sql index 0b7672a7b6..e7a54f52c6 100644 --- a/backend/src/main/resources/db/migration/V68__modify_api_test_case.sql +++ b/backend/src/main/resources/db/migration/V68__modify_api_test_case.sql @@ -25,3 +25,7 @@ INNER JOIN ( SET tt.last_result_id = tc.result_id WHERE tt.id = tc.id; + +-- 场景批量复制 +INSERT INTO user_group_permission (id, group_id, permission_id, module_id) +VALUES (UUID(), 'project_admin', 'PROJECT_API_SCENARIO:READ+BATCH_COPY', 'PROJECT_API_SCENARIO'); \ No newline at end of file diff --git a/backend/src/main/resources/db/migration/V89__v1.10.4_release.sql b/backend/src/main/resources/db/migration/V89__v1.10.4_release.sql index 2f995e6218..93e638d758 100644 --- a/backend/src/main/resources/db/migration/V89__v1.10.4_release.sql +++ b/backend/src/main/resources/db/migration/V89__v1.10.4_release.sql @@ -21,3 +21,8 @@ ALTER TABLE issues ADD platform_status varchar(50) NULL COMMENT '第三方平台 -- 定时同步缺陷 INSERT INTO schedule (id,`key`,`type`,value,`group`,job,enable,resource_id,user_id,workspace_id,create_time,update_time,project_id,name) VALUES ('7a23d4db-9909-438d-9e36-58e432c8c4ae','ISSUE_SYNC','CRON','0 0 3 * * ?','ISSUE_SYNC','io.metersphere.job.sechedule.IssueSyncJob',1,'system','admin','system',unix_timestamp() * 1000,unix_timestamp() * 1000,'system','ISSUE_SYNC'); + + +-- 批量创建性能测试 +INSERT INTO user_group_permission (id, group_id, permission_id, module_id) +VALUES (UUID(), 'project_admin', 'PROJECT_API_SCENARIO:READ+CREATE_PERFORMANCE_BATCH', 'PROJECT_API_SCENARIO'); \ No newline at end of file