Skip to content

Commit

Permalink
Merge 7206c81 into f793961
Browse files Browse the repository at this point in the history
  • Loading branch information
paradisekelechi committed Apr 10, 2018
2 parents f793961 + 7206c81 commit 9deb41c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions api/src/main/resources/liquibase-update-to-2.2.xml
Expand Up @@ -245,13 +245,24 @@
baseTableName="encounter_diagnosis" baseColumnNames="patient_id"
referencedTableName="patient" referencedColumnNames="patient_id" />
</changeSet>

<changeSet id="20180405131015-TRUNK-5333" author="alicerowan">
<preConditions onFail="MARK_RAN">
<columnExists tableName="concept_numeric" columnName="precise"/>
</preConditions>
<comment>Rename concept_numeric.precise to concept_numeric.allow_decimal</comment>
<renameColumn oldColumnName="precise" newColumnName="allow_decimal" tableName="concept_numeric" columnDataType="BOOLEAN"/>
</changeSet>

<changeSet id="20180323-1000" author="Kelechi+iheanyi" dbms="mysql">
<preConditions onFail="MARK_RAN">
<tableExists tableName="condition" />
<tableExists tableName="conditions" />
</preConditions>
<comment>
Migrate data from the conditions table to the new condition table
</comment>
<sql>
INSERT into `condition` (condition_id, previous_version, patient_id, clinical_status, condition_non_coded, condition_coded, onset_date, additional_detail, end_date, creator, date_created, voided, voided_by, date_voided, void_reason, uuid)
SELECT condition_id, previous_condition_id, patient_id, status, condition_non_coded, concept_id, onset_date, additional_detail, end_date, creator, date_created, voided, voided_by, date_voided, void_reason, uuid FROM `conditions`;
</sql>
</changeSet>
</databaseChangeLog>

0 comments on commit 9deb41c

Please sign in to comment.