From 4edff99e7200dab7d40186ff87d836f2844576ce Mon Sep 17 00:00:00 2001 From: CaptainB Date: Wed, 18 May 2022 12:14:50 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E5=A2=9E=E5=8A=A0=20flyway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V117__1.20.3__release.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 backend/src/main/resources/db/migration/V117__1.20.3__release.sql diff --git a/backend/src/main/resources/db/migration/V117__1.20.3__release.sql b/backend/src/main/resources/db/migration/V117__1.20.3__release.sql new file mode 100644 index 0000000000..3a8be7372d --- /dev/null +++ b/backend/src/main/resources/db/migration/V117__1.20.3__release.sql @@ -0,0 +1,18 @@ +-- V117_v1-20-3_ui-element-permission +-- start + +-- 项目管理员 +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_admin', 'PROJECT_UI_ELEMENT:READ+IMPORT', 'PROJECT_UI_ELEMENT'); + +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_admin', 'PROJECT_UI_ELEMENT:READ+EXPORT', 'PROJECT_UI_ELEMENT'); + + +-- 项目成员 +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_member', 'PROJECT_UI_ELEMENT:READ+IMPORT', 'PROJECT_UI_ELEMENT'); + +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_member', 'PROJECT_UI_ELEMENT:READ+EXPORT', 'PROJECT_UI_ELEMENT'); +-- end