Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BAH-1418| Madhuri,Samridhi | Add. Appointment and OT module for superman user #98

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions openmrs/migrations/liquibase.xml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,61 @@
INSERT INTO location_tag_map(location_id, location_tag_id) VALUES(@location_id, @location_tag_id);
</sql>
</changeSet>
<changeSet id="default-202301171054" author="Madhuri, Samridhi">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
SELECT count(*) from user_role WHERE user_id = (select user_id from users where username='superman') AND role = 'OT: FullAccess';
</sqlCheck>
</preConditions>
<comment>Add OT role for superman user</comment>
<sql>
INSERT INTO user_role(user_id, role) values((SELECT user_id FROM users where username='superman'), 'OT: FullAccess');
</sql>
</changeSet>
<changeSet id="default-202301171105" author="Madhuri, Samridhi">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
SELECT count(*) from user_role WHERE user_id = (select user_id from users where username='superman') AND role = 'OT: ReadOnly';
Samridhi-98 marked this conversation as resolved.
Show resolved Hide resolved
</sqlCheck>
</preConditions>
<comment>Add OT role to superman</comment>
<sql>
INSERT INTO user_role(user_id, role) values((SELECT user_id FROM users where username='superman'), 'OT: ReadOnly');
</sql>
</changeSet>
<changeSet id="default-202301171110" author="Madhuri, Samridhi">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
SELECT count(*) from user_role WHERE user_id = (select user_id from users where username='superman') AND role = 'Appointments:FullAccess';
</sqlCheck>
</preConditions>
<comment>Add Appointment FullAccess role to superman</comment>
<sql>
INSERT INTO user_role(user_id, role) values((SELECT user_id FROM users where username='superman'), 'Appointments:FullAccess');
Samridhi-98 marked this conversation as resolved.
Show resolved Hide resolved
</sql>
</changeSet>
<changeSet id="default-202301171130" author="Madhuri, Samridhi">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
SELECT count(*) from user_role WHERE user_id = (select user_id from users where username='superman') AND role = 'Appointments:ReadOnly';
</sqlCheck>
</preConditions>
<comment>Add Appointment ReadOnly role to superman</comment>
<sql>
INSERT INTO user_role(user_id, role) values((SELECT user_id FROM users where username='superman'), 'Appointments:ReadOnly');
</sql>
</changeSet>
<changeSet id="default-202301171135" author="Madhuri, Samridhi">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
SELECT count(*) from user_role WHERE user_id = (select user_id from users where username='superman') AND role = 'Appointments:ManageAppointments';
</sqlCheck>
</preConditions>
<comment>Add Appointment Manage role to superman</comment>
<sql>
INSERT INTO user_role(user_id, role) values((SELECT user_id FROM users where username='superman'), 'Appointments:ManageAppointments');
</sql>
</changeSet>
<include file ="addObsPathSplitterProperty.xml"/>
<include file ="addMoreObsSplitterProperty.xml"/>
<include file ="addMultiSelectObsSplitterProperty.xml"/>
Expand Down