Skip to content

Commit

Permalink
TRUNK-6155: Upgrade 2.7 Platform to Liquibase 4.8.0 (#4401)
Browse files Browse the repository at this point in the history
  • Loading branch information
k4pran authored Oct 10, 2023
1 parent cd64971 commit 298022c
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 48 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
</changeSet>
<changeSet author="vshankar" id="201609171146-1">
<preConditions onFail="MARK_RAN">
<foreignKeyConstraintExists foreignKeyName="member_patient"/>
<foreignKeyConstraintExists foreignKeyTableName="cohort_member" foreignKeyName="member_patient"/>
</preConditions>
<comment>Dropping foreign key constraint member_patient</comment>
<dropForeignKeyConstraint constraintName="member_patient" baseTableName="cohort_member"/>
</changeSet>
<changeSet author="vshankar" id="201609171146-1.1">
<preConditions onFail="MARK_RAN">
<foreignKeyConstraintExists foreignKeyName="parent_cohort"/>
<foreignKeyConstraintExists foreignKeyTableName="cohort_member" foreignKeyName="parent_cohort"/>
</preConditions>
<comment>Dropping foreign key constraint parent_cohort</comment>
<dropForeignKeyConstraint constraintName="parent_cohort" baseTableName="cohort_member"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@

<changeSet id="20200622-cascade_delete_concept_comlex" author="aman" dbms="postgresql">
<preConditions onFail="MARK_RAN">
<foreignKeyConstraintExists foreignKeyName="concept_attributes"/>
<foreignKeyConstraintExists foreignKeyTableName="concept_complex" foreignKeyName="concept_attributes"/>
</preConditions>
<comment>Updating foreign key concept_attributes to add delete CASCADES</comment>
<dropForeignKeyConstraint baseTableName="concept_complex" constraintName="concept_attributes"/>
Expand All @@ -125,23 +125,23 @@

<changeSet id="20200622-cascade_delete_concept_numeric" author="aman" dbms="postgresql">
<preConditions onFail="MARK_RAN">
<foreignKeyConstraintExists foreignKeyName="numeric_attributes"/>
<foreignKeyConstraintExists foreignKeyTableName="concept_numeric" foreignKeyName="numeric_attributes"/>
</preConditions>
<comment>Updating foreign key numeric_attributes to add delete CASCADES</comment>
<dropForeignKeyConstraint baseTableName="concept_numeric" constraintName="numeric_attributes"/>
<addForeignKeyConstraint baseColumnNames="concept_id" baseTableName="concept_numeric" constraintName="numeric_attributes" deferrable="false" initiallyDeferred="false" onDelete="CASCADE" onUpdate="NO ACTION" referencedColumnNames="concept_id" referencedTableName="concept"/>
</changeSet>
<changeSet id="20200622-cascade_delete_patient" author="aman" dbms="postgresql">
<preConditions onFail="MARK_RAN">
<foreignKeyConstraintExists foreignKeyName="person_id_for_patient"/>
<foreignKeyConstraintExists foreignKeyTableName="patient" foreignKeyName="person_id_for_patient"/>
</preConditions>
<comment>Updating foreign key person_id_for_patient to add delete CASCADES</comment>
<dropForeignKeyConstraint baseTableName="patient" constraintName="person_id_for_patient"/>
<addForeignKeyConstraint baseColumnNames="patient_id" baseTableName="patient" constraintName="person_id_for_patient" deferrable="false" initiallyDeferred="false" onDelete="CASCADE" onUpdate="CASCADE" referencedColumnNames="person_id" referencedTableName="person"/>
</changeSet>
<changeSet id="20200622-cascade_delete_test_order" author="aman" dbms="postgresql">
<preConditions onFail="MARK_RAN">
<foreignKeyConstraintExists foreignKeyName="test_order_order_id_fk"/>
<foreignKeyConstraintExists foreignKeyTableName="test_order" foreignKeyName="test_order_order_id_fk"/>
</preConditions>
<comment>Updating foreign key test_order_order_id_fk to add delete CASCADES</comment>
<dropForeignKeyConstraint baseTableName="test_order" constraintName="test_order_order_id_fk"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@

<changeSet id="2020-09-16-1700-TRUNK-5736" author="miirochristopher">
<preConditions onFail="MARK_RAN" onFailMessage="Cannot delete or update user, foreign key constraint user_who_changed_user fails">
<foreignKeyConstraintExists foreignKeyName="user_who_changed_user"/>
<foreignKeyConstraintExists foreignKeyTableName="users" foreignKeyName="user_who_changed_user"/>
</preConditions>
<comment>Updating foreign key user_who_changed_user to add delete CASCADE</comment>
<dropForeignKeyConstraint baseTableName="users" constraintName="user_who_changed_user"/>
Expand Down
2 changes: 1 addition & 1 deletion liquibase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>3.10.3</version>
<version>4.8.0</version>
<configuration>
<changeLogFile>snapshots/${changelogfile}</changeLogFile>
<diffTypes>${diffTypes}</diffTypes>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>4.4.3</version>
<version>4.8.0</version>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
Expand Down

0 comments on commit 298022c

Please sign in to comment.