Skip to content

Commit

Permalink
BAH-3581 | Add. Print header location attribute
Browse files Browse the repository at this point in the history
* Deepthi M |BAH-3581-update | Added print header location attribute.

* Deepthi M |BAH-3581-update | Updated the author
  • Loading branch information
deepthi-mantena authored Mar 14, 2024
1 parent eaaa8a4 commit 28772ad
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions masterdata/configuration/liquibase/liquibase.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,26 @@
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

<changeSet id="20240229606-update-identifier-source" author="Bahmni">
<changeSet id="20240229606-update-identifier-source" author="Bahmni-config">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="1">SELECT COUNT(*) FROM idgen_identifier_source WHERE name = 'GAN'</sqlCheck>
</preConditions>
<sql>
UPDATE idgen_seq_id_gen SET max_length = 9 WHERE id = (SELECT id FROM idgen_identifier_source WHERE name = 'GAN');
</sql>
</changeSet>

<changeSet id="BAH-3581-update-location-attribute-type-20241103" author="Bahmni-Config">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
SELECT count(*) FROM location_attribute_type where name="Print Header";
</sqlCheck>
</preConditions>
<comment>Adding location attribute type print Header</comment>
<sql>
INSERT INTO location_attribute_type (name, description, datatype, preferred_handler, min_occurs, creator, date_created,
retired, uuid)
VALUES ("Print Header","Clinical address used on header for any print",
"org.openmrs.customdatatype.datatype.LongFreeTextDatatype", "org.openmrs.web.attribute.handler.LongFreeTextTextareaHandler", 0, 1, NOW(), 0, "6cd01df8-4418-4079-95bf-9716413dc8f5");
</sql>
</changeSet>
</databaseChangeLog>

0 comments on commit 28772ad

Please sign in to comment.