소스 검색

update authority sql

master
kelvinsuen 3 주 전
부모
커밋
2eb0e77685
2개의 변경된 파일25개의 추가작업 그리고 0개의 파일을 삭제
  1. +15
    -0
      src/main/resources/db/changelog/changes/11_update_authority/01_update_authority.sql
  2. +10
    -0
      src/main/resources/db/changelog/changes/11_update_authority/02_update_authority_group_authority.sql

+ 15
- 0
src/main/resources/db/changelog/changes/11_update_authority/01_update_authority.sql 파일 보기

@@ -0,0 +1,15 @@
--liquibase formatted sql

--changeset kelvin:update authority

TRUNCATE `lionerdb`.`authority`;
INSERT INTO `lionerdb`.`authority` (`authority`, `name`, `module`, `description`) VALUES
('VIEW_CLIENT', 'View Client', 'Client', 'Allow to view client'),
('MAINTAIN_CLIENT', 'Maintain Client', 'Client', 'Allow to view client'),
('VIEW_USER', 'View User', 'System Administration', 'Allow to view user'),
('MAINTAIN_USER', 'Maintain User', 'System Administration', 'Allow to maintain user'),
('VIEW_LOGIN_LOG', 'View Login Log', 'System Administration', 'Allow to view login log'),
('VIEW_TEMPLATE', 'View Template', 'Template', 'Allow to view template'),
('MAINTAIN_TEMPLATE', 'Maintain Template', 'Template', 'Allow to maintain template'),
('VIEW_SYSTEM_CONFIGURATION', 'View System Configuration', 'System Administration', 'Allow to view system configuration'),
('MANAGE_SYSTEM_CONFIGURATION', 'Manage System Configuration', 'System Administration', 'Allow to manage system configuration');

+ 10
- 0
src/main/resources/db/changelog/changes/11_update_authority/02_update_authority_group_authority.sql 파일 보기

@@ -0,0 +1,10 @@
--liquibase formatted sql

--changeset kelvin:update group authority

TRUNCATE `lionerdb`.`user_authority`;
TRUNCATE `lionerdb`.`group_authority`;
INSERT INTO `lionerdb`.`group_authority` (`groupId`, `authId`) VALUES
('1', '1'),('1', '2'),
('2', '3'),('2', '4'),('2', '5'),('2', '8'),('2', '9'),
('3', '1'),('3', '2'),('3', '3'),('3', '4'),('3', '5'),('3', '6'),('3', '7'),('3', '8'),('3', '9');

불러오는 중...
취소
저장