Skip to content
Permalink
Browse files
fix id
Signed-off-by: crazyhzm <crazyhzm@apache.org>
  • Loading branch information
CrazyHZM committed May 18, 2022
1 parent 80bce59 commit a11cf4d1c2cefb9b732578c622830debb28a26f9
Showing 1 changed file with 9 additions and 17 deletions.
@@ -371,35 +371,27 @@ VALUES
(2, 'CreateNamespace', 'SampleApp'),
(3, 'AssignRole', 'SampleApp'),
(4, 'ModifyNamespace', 'SampleApp+application'),
(5, 'ReleaseNamespace', 'SampleApp+application');

INSERT INTO `Permission` (`Id`, `PermissionType`, `TargetId`)
VALUES
(1, 'CreateCluster', 'SampleApp'),
(2, 'CreateNamespace', 'SampleApp'),
(3, 'AssignRole', 'SampleApp'),
(4, 'ModifyNamespace', 'SampleApp+dubbo'),
(5, 'ReleaseNamespace', 'SampleApp+dubbo');
(5, 'ReleaseNamespace', 'SampleApp+application'),
(6, 'ModifyNamespace', 'SampleApp+dubbo'),
(7, 'ReleaseNamespace', 'SampleApp+dubbo');

INSERT INTO `Role` (`Id`, `RoleName`)
VALUES
(1, 'Master+SampleApp'),
(2, 'ModifyNamespace+SampleApp+application'),
(3, 'ReleaseNamespace+SampleApp+application');

INSERT INTO `Role` (`Id`, `RoleName`)
VALUES
(1, 'Master+SampleApp'),
(2, 'ModifyNamespace+SampleApp+dubbo'),
(3, 'ReleaseNamespace+SampleApp+dubbo');
(3, 'ReleaseNamespace+SampleApp+application'),
(4, 'ModifyNamespace+SampleApp+dubbo'),
(5, 'ReleaseNamespace+SampleApp+dubbo');

INSERT INTO `RolePermission` (`RoleId`, `PermissionId`)
VALUES
(1, 1),
(1, 2),
(1, 3),
(2, 4),
(3, 5);
(3, 5)
(4, 6),
(5, 7);;

INSERT INTO `UserRole` (`UserId`, `RoleId`)
VALUES

0 comments on commit a11cf4d

Please sign in to comment.