Skip to content

Commit

Permalink
AP-37 | Sukreet | Add migration to create 'Appointments: Add Provider…
Browse files Browse the repository at this point in the history
…s` privilege. (Bahmni#24)
  • Loading branch information
sukreet authored and bsneha90TW committed Jan 13, 2020
1 parent 2a689cb commit 1960eeb
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion api/src/main/resources/liquibase.xml
Original file line number Diff line number Diff line change
Expand Up @@ -548,5 +548,17 @@
<column name="initial_appointment_status" type="varchar(45)"/>
</addColumn>
</changeSet>

<changeSet id="202001021618" author="Sukreet">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
SELECT COUNT(*) FROM privilege WHERE privilege = 'Appointments: Invite Providers';
</sqlCheck>
</preConditions>
<comment>Add Schedule Appointments privilege to manage own appointments only.</comment>
<insert tableName="privilege">
<column name="privilege" value="Appointments: Invite Providers"/>
<column name="description" value="With this privilege, providers can invite others to an appointment"/>
<column name="uuid" valueComputed="UUID()"/>
</insert>
</changeSet>
</databaseChangeLog>

0 comments on commit 1960eeb

Please sign in to comment.