Skip to content

Commit

Permalink
Trunk-5650:Add parent order group to order group (#3068)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitcliff authored and dkayiwa committed Dec 19, 2019
1 parent bfbc32a commit 230a4a5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
17 changes: 0 additions & 17 deletions api/src/main/resources/liquibase-update-to-2.3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,4 @@
<where>system_id='admin'</where>
</update>
</changeSet>
<changeSet id="20190815-Trunk-5650" author="gitacliff">
<preConditions onFail="MARK_RAN">
<not>
<columnExists tableName="order_group" columnName="parent_order_group"/>
</not>
</preConditions>
<comment>Adding "parent_order_group" column to order_group table</comment>
<addColumn tableName="order_group">
<column name="parent_order_group" type="int">
<constraints nullable="true"/>
</column>
</addColumn><addForeignKeyConstraint baseTableName="order_group"
baseColumnNames="parent_order_group"
constraintName="order_group_parent_order_group_fk"
referencedTableName="order_group"
referencedColumnNames="order_group_id" />
</changeSet>
</databaseChangeLog>
17 changes: 17 additions & 0 deletions api/src/main/resources/liquibase-update-to-2.4.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@
constraintName="order_group_order_group_reason_fk"
referencedTableName="concept"
referencedColumnNames="concept_id" />
</changeSet>
<changeSet id="20190815-Trunk-5650" author="gitacliff">
<preConditions onFail="MARK_RAN">
<not>
<columnExists tableName="order_group" columnName="parent_order_group"/>
</not>
</preConditions>
<comment>Adding "parent_order_group" column to order_group table</comment>
<addColumn tableName="order_group">
<column name="parent_order_group" type="int">
<constraints nullable="true"/>
</column>
</addColumn><addForeignKeyConstraint baseTableName="order_group"
baseColumnNames="parent_order_group"
constraintName="order_group_parent_order_group_fk"
referencedTableName="order_group"
referencedColumnNames="order_group_id" />
</changeSet>
</databaseChangeLog>

0 comments on commit 230a4a5

Please sign in to comment.