Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openmrs/openmrs-core
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: df3908353eb4
Choose a base ref
...
head repository: openmrs/openmrs-core
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b97cb8f86ccd
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Feb 7, 2014

  1. TRUNK-4025, backport liquibase fixes to 1.9.x

    cioan committed Feb 7, 2014
    Copy the full SHA
    9900260 View commit details

Commits on Feb 8, 2014

  1. Merge pull request #623 from cioan/TRUNK-4025

    TRUNK-4025, backport liquibase fixes to 1.9.x
    dkayiwa committed Feb 8, 2014
    Copy the full SHA
    b97cb8f View commit details
Showing with 7 additions and 5 deletions.
  1. +7 −5 api/src/main/resources/liquibase-update-to-latest.xml
12 changes: 7 additions & 5 deletions api/src/main/resources/liquibase-update-to-latest.xml
Original file line number Diff line number Diff line change
@@ -2347,14 +2347,16 @@
</changeSet>

<changeSet id="200902142213" author="ewolodzko" dbms="mysql">
<validCheckSum>3:ace82a1ecb3a0c3246e39f0bebe38423</validCheckSum> <!-- original checksum -->
<validCheckSum>3:288804e42d575fe62c852ed9daa9d59d</validCheckSum> <!-- current checksum with TRUNK-4025 fix-->
<comment>
Add default sortWeights to all current PersonAttributeTypes
</comment>
<update tableName="person_attribute_type" >
<!-- The weird (select * from person_attribute_type) is needed here instead of just (person_attribute_type) to avoid sql ERROR 1093 -->
<column name="sort_weight" valueNumeric="((select count(*) from (select * from person_attribute_type) pat where pat.name &lt; person_attribute_type.name))" />
<where>sort_weight is null</where>
</update>
<sql>
<![CDATA[
UPDATE person_attribute_type as A JOIN person_attribute_type as B ON A.name = B.name SET A.sort_weight = (select count(*) from (select * from person_attribute_type) pat where pat.name < A.name) WHERE A.sort_weight is null;
]]>
</sql>
</changeSet>

<changeSet id="200906301606" author="bwolfe" dbms="mysql">