aboutsummaryrefslogtreecommitdiffstats
path: root/installation
diff options
context:
space:
mode:
authorAlexis de Talhouët <adetalhouet89@gmail.com>2018-11-12 16:35:30 -0500
committerAlexis de Talhouët <alexis.de_talhouet@bell.ca>2018-11-12 21:38:11 +0000
commit2e44e349c3fd57c5b8eaaea85b81e31fe2b4a80d (patch)
tree973e4447c332cab9e5205aadff9694ae07949ce7 /installation
parent3df4ba7c88cf330cd358b2cc1a21cd31405fcbb7 (diff)
Drop CDS tables only if they exist
During the initialization of SDNC, SDNC tries to install all the SQL dump provided. While processing the one for CDS, it was failing to execute the first statement as the table is not existent; hence was exiting that dump and processing with the next one. In order to make sure the process creates CDS tables, make the DROP statement work even if table doesn't exist. Change-Id: Ifa99b8e1a13ac3828828e8b2a9f9674556f84ced Issue-ID: CCSDK-682 Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com> Former-commit-id: d9dbcdbe0cb870b558ef0415e5c33fef01413128
Diffstat (limited to 'installation')
-rw-r--r--installation/sdnc/src/main/resources/blueprint-processor.data.dump8
1 files changed, 4 insertions, 4 deletions
diff --git a/installation/sdnc/src/main/resources/blueprint-processor.data.dump b/installation/sdnc/src/main/resources/blueprint-processor.data.dump
index 5fd53cbd..9a19863c 100644
--- a/installation/sdnc/src/main/resources/blueprint-processor.data.dump
+++ b/installation/sdnc/src/main/resources/blueprint-processor.data.dump
@@ -4,10 +4,10 @@
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 IF EXISTS sdnctl.CONFIG_RESOURCE_ASSIGNMENT_DATA;
+DROP TABLE IF EXISTS sdnctl.CONFIG_RESOURCE;
+DROP TABLE IF EXISTS sdnctl.CONFIG_RESOURCE_RELATION;
+DROP TABLE IF EXISTS sdnctl.CONFIG_TRANSACTION_LOG;
SET FOREIGN_KEY_CHECKS=1;