Skip to content

Commit

Permalink
Liquibase changesets to run on MySQL and MariaDB databases. (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruhanga authored Nov 27, 2024
1 parent a2a062a commit 0443fa4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions bahmnicore-omod/src/main/resources/liquibase.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<property name="now" value="now()"/>

<changeSet id="bahmni-setup-6" author="tw" context="rel3">
<changeSet id="bahmni-setup-6-updated" author="tw" context="rel3">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
SELECT COUNT(*) FROM concept_reference_source where name = 'org.openmrs.module.emrapi';
Expand All @@ -26,7 +26,7 @@
<column name="date_created" valueDate="${now}"/>
<column name="creator" value="1"/>
</insert>
<modifySql dbms="mysql">
<modifySql dbms="mysql,mariadb">
<replace replace="name-of-uuid-function" with="UUID()"/>
</modifySql>
</changeSet>
Expand Down Expand Up @@ -2967,7 +2967,7 @@
</sql>

</changeSet>
<changeSet id="20151218-1530-create-program_attribute_type-table" author="Rahul,Swathi" dbms="mysql">
<changeSet id="20151218-1530-create-program_attribute_type-table-updated" author="Rahul,Swathi" dbms="mysql,mariadb">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="program_attribute_type" />
Expand Down Expand Up @@ -3516,7 +3516,7 @@
</sql>
</changeSet>

<changeSet id="20100517-1545" author="wyclif and djazayeri" dbms="mysql">
<changeSet id="20100517-1545-updated" author="wyclif and djazayeri" dbms="mysql,mariadb">
<comment>Switch boolean concepts/observations to be stored as coded</comment>
<customChange class="org.openmrs.util.databasechange.BooleanConceptChangeSet"/>
</changeSet>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<sqlFile path="migrations/dependent-modules/V1_73__RemoveNotNullConstraintOnAddressEntryName.sql"/>
</changeSet>

<changeSet id="bahmni-setup-5" author="tw" context="rel3">
<changeSet id="bahmni-setup-5-updated" author="tw" context="rel3">
<preConditions onFail="MARK_RAN">
<sqlCheck expectedResult="0">
SELECT COUNT(*) FROM global_property where property = 'emr.primaryIdentifierType'
Expand All @@ -42,7 +42,7 @@
<column name="description"
value="Primary identifier type for looking up patients, generating barcodes, etc"/>
</insert>
<modifySql dbms="mysql">
<modifySql dbms="mysql,mariadb">
<replace replace="name-of-uuid-function" with="UUID()"/>
</modifySql>
</changeSet>
Expand Down

0 comments on commit 0443fa4

Please sign in to comment.