Skip to content

Commit

Permalink
Merge pull request #345 from bcgov/feature/reportPerms
Browse files Browse the repository at this point in the history
Create V1.0.60__EDX_API.sql
  • Loading branch information
arcshiftsolutions authored Nov 19, 2024
2 parents 5b55086 + e8f6fe4 commit 33101eb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions api/src/main/resources/db/migration/V1.0.60__EDX_API.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
INSERT INTO EDX_PERMISSION (EDX_PERMISSION_CODE, LABEL, DESCRIPTION, CREATE_USER, UPDATE_USER)
VALUES ('GRAD_SCH_TVR_VIEW', 'GRAD School TVR View', 'GRAD view projections and tvrs reports permission for School.', 'IDIR/AVSODHI', 'IDIR/AVSODHI');

INSERT INTO EDX_PERMISSION (EDX_PERMISSION_CODE, LABEL, DESCRIPTION, CREATE_USER, UPDATE_USER)
VALUES ('GRAD_SCH_RPT_VIEW', 'GRAD School Reports View', 'GRAD view reports and transcripts permission for School.', 'IDIR/AVSODHI', 'IDIR/AVSODHI');

INSERT INTO EDX_PERMISSION (EDX_PERMISSION_CODE, LABEL, DESCRIPTION, CREATE_USER, UPDATE_USER)
VALUES ('GRAD_DIS_TVR_VIEW', 'GRAD District TVR View', 'GRAD view projections and tvrs reports permission for District.', 'IDIR/AVSODHI', 'IDIR/AVSODHI');

INSERT INTO EDX_PERMISSION (EDX_PERMISSION_CODE, LABEL, DESCRIPTION, CREATE_USER, UPDATE_USER)
VALUES ('GRAD_DIS_RPT_VIEW', 'GRAD District Reports View', 'GRAD view reports and transcripts permission for District.', 'IDIR/AVSODHI', 'IDIR/AVSODHI');

INSERT INTO EDX_ROLE_PERMISSION (EDX_ROLE_PERMISSION_ID, EDX_ROLE_CODE, EDX_PERMISSION_CODE, CREATE_USER, CREATE_DATE,
UPDATE_USER, UPDATE_DATE)
VALUES (gen_random_uuid(), 'GRAD_SCH_ADMIN', 'GRAD_SCH_TVR_VIEW', 'IDIR/AVSODHI',
to_date('2024-11-18', 'YYYY-MM-DD'), 'IDIR/AVSODHI', to_date('2024-11-18', 'YYYY-MM-DD'));

INSERT INTO EDX_ROLE_PERMISSION (EDX_ROLE_PERMISSION_ID, EDX_ROLE_CODE, EDX_PERMISSION_CODE, CREATE_USER, CREATE_DATE,
UPDATE_USER, UPDATE_DATE)
VALUES (gen_random_uuid(), 'GRAD_SCH_ADMIN', 'GRAD_SCH_RPT_VIEW', 'IDIR/AVSODHI',
to_date('2024-11-18', 'YYYY-MM-DD'), 'IDIR/AVSODHI', to_date('2024-11-18', 'YYYY-MM-DD'));

INSERT INTO EDX_ROLE_PERMISSION (EDX_ROLE_PERMISSION_ID, EDX_ROLE_CODE, EDX_PERMISSION_CODE, CREATE_USER, CREATE_DATE,
UPDATE_USER, UPDATE_DATE)
VALUES (gen_random_uuid(), 'GRAD_DIS_ADMIN', 'GRAD_DIS_TVR_VIEW', 'IDIR/AVSODHI',
to_date('2024-11-18', 'YYYY-MM-DD'), 'IDIR/AVSODHI', to_date('2024-11-18', 'YYYY-MM-DD'));

INSERT INTO EDX_ROLE_PERMISSION (EDX_ROLE_PERMISSION_ID, EDX_ROLE_CODE, EDX_PERMISSION_CODE, CREATE_USER, CREATE_DATE,
UPDATE_USER, UPDATE_DATE)
VALUES (gen_random_uuid(), 'GRAD_DIS_ADMIN', 'GRAD_DIS_RPT_VIEW', 'IDIR/AVSODHI',
to_date('2024-11-18', 'YYYY-MM-DD'), 'IDIR/AVSODHI', to_date('2024-11-18', 'YYYY-MM-DD'));

0 comments on commit 33101eb

Please sign in to comment.