From 0d7ae4fe9a27280184e6db3bfa2fd4354ad8f62a Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Fri, 21 Apr 2023 11:08:01 +0100 Subject: Add cascade delete fragments to liquibase test config Cascade delete was added to fragments table in main DB changelog, but not to integration-test changelog. Issue-ID: CPS-1617 Signed-off-by: danielhanrahan Change-Id: If85f120dfdc4bf3e9c8a1dde2b982378560d418a --- .../test/resources/liquibase/test-changelog.yaml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'integration-test/src/test') diff --git a/integration-test/src/test/resources/liquibase/test-changelog.yaml b/integration-test/src/test/resources/liquibase/test-changelog.yaml index 8b7422ce54..f53fef70b7 100644 --- a/integration-test/src/test/resources/liquibase/test-changelog.yaml +++ b/integration-test/src/test/resources/liquibase/test-changelog.yaml @@ -615,3 +615,37 @@ databaseChangeLog: - dropIndex: indexName: FKI_SCHEMA_SET_YANG_RESOURCES_SCHEMA_SET_ID_FK tableName: schema_set_yang_resources + + - changeSet: + author: cps + id: 1-42 + changes: + - dropForeignKeyConstraint: + baseTableName: fragment + constraintName: fragment_parent_id_fkey + - addForeignKeyConstraint: + baseColumnNames: parent_id + baseTableName: fragment + constraintName: fragment_parent_id_fkey + deferrable: false + initiallyDeferred: false + onDelete: CASCADE + onUpdate: NO ACTION + referencedColumnNames: id + referencedTableName: fragment + validate: true + rollback: + - dropForeignKeyConstraint: + baseTableName: fragment + constraintName: fragment_parent_id_fkey + - addForeignKeyConstraint: + baseColumnNames: parent_id + baseTableName: fragment + constraintName: fragment_parent_id_fkey + deferrable: false + initiallyDeferred: false + onDelete: NO ACTION + onUpdate: NO ACTION + referencedColumnNames: id + referencedTableName: fragment + validate: true -- cgit 1.2.3-korg