From: Alexis de Talhouët Date: Fri, 5 Oct 2018 03:13:21 +0000 (-0400) Subject: Fix for a foreign key constraint fails X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=e221bf44834cb78483855aeadd4554f7f93d7da9;p=sdnc%2Foam.git Fix for a foreign key constraint fails https://stackoverflow.com/a/17828127 Change-Id: I38fb90fd1d6583a259a441f4f67f762724aff5ec Issue-ID: CCSDK-357 Signed-off-by: Alexis de Talhouët --- diff --git a/installation/sdnc/src/main/resources/blueprint-processor.data.dump b/installation/sdnc/src/main/resources/blueprint-processor.data.dump index 9a4bd3f0..5fd53cbd 100644 --- a/installation/sdnc/src/main/resources/blueprint-processor.data.dump +++ b/installation/sdnc/src/main/resources/blueprint-processor.data.dump @@ -2,11 +2,14 @@ -- Dropping tables ( One time ) -- ----------------------------------------------------- +SET FOREIGN_KEY_CHECKS=0; + DROP TABLE sdnctl.CONFIG_RESOURCE_ASSIGNMENT_DATA; DROP TABLE sdnctl.CONFIG_RESOURCE; DROP TABLE sdnctl.CONFIG_RESOURCE_RELATION; -DROP TABLE sdnctl.CONFIG_TRANSACTION_LOG +DROP TABLE sdnctl.CONFIG_TRANSACTION_LOG; +SET FOREIGN_KEY_CHECKS=1; -- ----------------------------------------------------- -- table sdnctl.CONFIG_TRANSACTION_LOG