Skip to content

Commit

Permalink
Merge pull request #273 from bcgov/fix/EDX-1950
Browse files Browse the repository at this point in the history
Fix/edx 1950
  • Loading branch information
trev-dev authored Nov 2, 2023
2 parents b8b9431 + dd467a1 commit a0c6526
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions api/src/main/resources/db/migration/V1.0.38__EDX_API.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
UPDATE EDX_ROLE
SET LABEL = 'School Info Administrator', DESCRIPTION = 'Can edit school details and contacts.'
WHERE EDX_ROLE_CODE = 'EDX_EDIT_SCHOOL';

UPDATE EDX_ROLE
SET LABEL = 'District Info Administrator', DESCRIPTION = 'Can edit school and district details and contacts.'
WHERE EDX_ROLE_CODE = 'EDX_EDIT_DISTRICT';

UPDATE EDX_ROLE
SET LABEL = 'EDX District Account Manager', DESCRIPTION = 'Can manage the school and district''s EDX users.'
WHERE EDX_ROLE_CODE = 'EDX_DISTRICT_ADMIN';

UPDATE EDX_ROLE
SET LABEL = 'EDX School Account Manager', DESCRIPTION = 'Can manage the school''s EDX users.'
WHERE EDX_ROLE_CODE = 'EDX_SCHOOL_ADMIN';

UPDATE EDX_ROLE
SET LABEL = 'Secure Messaging', DESCRIPTION = 'Can access the school''s Secure Messaging Inbox.'
WHERE EDX_ROLE_CODE = 'SECURE_EXCHANGE_SCHOOL';

UPDATE EDX_ROLE
SET LABEL = 'Secure Messaging', DESCRIPTION = 'Can access the district''s Secure Messaging Inbox.'
WHERE EDX_ROLE_CODE = 'SECURE_EXCHANGE_DISTRICT';

DELETE FROM EDX_ROLE_PERMISSION
WHERE EDX_ROLE_CODE IN ('EDX_SCHOOL_ADMIN', 'EDX_DISTRICT_ADMIN')
AND EDX_PERMISSION_CODE IN ('EDX_SCHOOL_EDIT', 'EDX_DISTRICT_EDIT', 'SECURE_EXCHANGE', 'STUDENT_DATA_COLLECTION');

0 comments on commit a0c6526

Please sign in to comment.