From 9ef40e2b8de790698f13e41800aebc52eb6495d1 Mon Sep 17 00:00:00 2001 From: Rasika Perera Date: Fri, 28 Jul 2017 17:55:15 +0530 Subject: [PATCH] Fixing https://github.com/wso2/product-iots/issues/1250 --- .../src/main/resources/dbscripts/cdm/oracle.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/oracle.sql b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/oracle.sql index 84eb6229679..36efbe787bd 100644 --- a/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/oracle.sql +++ b/features/device-mgt/org.wso2.carbon.device.mgt.server.feature/src/main/resources/dbscripts/cdm/oracle.sql @@ -284,9 +284,11 @@ WHEN (NEW.ID IS NULL) END; / -CREATE INDEX IDX_ENID_OPID ON DM_DEVICE_OPERATION_RESPONSE(OPERATION_ID, ENROLMENT_ID); -CREATE INDEX IDX_DM_EN_OP_MAP_RES ON DM_DEVICE_OPERATION_RESPONSE(EN_OP_MAP_ID); +CREATE INDEX IDX_ENID_OPID ON DM_DEVICE_OPERATION_RESPONSE(OPERATION_ID, ENROLMENT_ID) +/ +CREATE INDEX IDX_DM_EN_OP_MAP_RES ON DM_DEVICE_OPERATION_RESPONSE(EN_OP_MAP_ID) +/ -- POLICY RELATED TABLES --- CREATE TABLE DM_PROFILE (