build: 初始化2.0flyway

This commit is contained in:
CaptainB 2022-07-20 15:53:53 +08:00 committed by f2c-ci-robot[bot]
parent 4dae7e22ee
commit 3e7cf93312
1 changed files with 9 additions and 0 deletions

View File

@ -260,3 +260,12 @@ WHERE `type` = '';
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;
--
-- v2_init_permissions
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
VALUES (UUID(), 'project_admin', 'PROJECT_TRACK_CASE:READ+BATCH_LINK_DEMAND', 'PROJECT_TRACK_CASE');
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
VALUES (UUID(), 'project_member', 'PROJECT_TRACK_CASE:READ+BATCH_LINK_DEMAND', 'PROJECT_TRACK_CASE');