Skip to content

Commit

Permalink
Merge pull request Bahmni#7 from Bahmni/release-1.1
Browse files Browse the repository at this point in the history
BAH-639 | Swathi,Bindu | Fix the hardcoded user_id in migration (Bahmni#6)
  • Loading branch information
angshu authored Sep 17, 2018
2 parents 446cd48 + ddd721c commit 892f6af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/src/main/resources/liquibase.xml
Original file line number Diff line number Diff line change
Expand Up @@ -332,19 +332,18 @@
<sqlFile path="patientUpcomingAppointments.sql"/>
</changeSet>

<changeSet id="Create-Available-for-appointments-201712121212-1" author="Maharjun, Saikumar">
<changeSet id="Create-Available-for-appointments-201712121212-2" author="Maharjun, Saikumar">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
SELECT count(*) FROM provider_attribute_type where name="Available for appointments";
</sqlCheck>
</preConditions>
<comment>Adding provider attribute type for Appointments</comment>
<sql>
SELECT user_id into @userid from users where username = 'admin';
INSERT INTO provider_attribute_type (name, description, datatype, min_occurs, creator, date_created,
retired, uuid)
VALUES ("Available for appointments","providers will be available for appointments",
"org.openmrs.customdatatype.datatype.BooleanDatatype", 0, @userid, NOW(), 0, UUID());
"org.openmrs.customdatatype.datatype.BooleanDatatype", 0, 1, NOW(), 0, UUID());
</sql>
</changeSet>

Expand Down

0 comments on commit 892f6af

Please sign in to comment.