diff --git a/backend/src/main/resources/db/migration/V97__v1.14_release.sql b/backend/src/main/resources/db/migration/V97__v1.14_release.sql index 729ce16c65..f84a3f6700 100644 --- a/backend/src/main/resources/db/migration/V97__v1.14_release.sql +++ b/backend/src/main/resources/db/migration/V97__v1.14_release.sql @@ -272,6 +272,15 @@ DELIMITER ; CALL test_cursor(); DROP PROCEDURE IF EXISTS test_cursor; +-- 处理非组织级别非全局用户组 +UPDATE `group` +SET scope_id = 'global' +WHERE id IN + (SELECT id + FROM (SELECT * FROM `group`) AS temp + WHERE type != 'ORGANIZATION' + AND scope_id IN (SELECT id FROM organization)); + -- 工作空间服务集成 INSERT INTO user_group_permission (id, group_id, permission_id, module_id) VALUES (UUID(), 'ws_admin', 'WORKSPACE_SERVICE:READ', 'WORKSPACE_SERVICE');