From 96366de4dd53c5118ba07cad737a9a2406ec8232 Mon Sep 17 00:00:00 2001 From: Dileesha Rajapakse Date: Thu, 10 Dec 2015 15:30:17 +0530 Subject: [PATCH] Fixed syntax errors in sequence creation --- .../src/main/resources/dbscripts/cdm/oracle.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 dd6fa2c6217..10e92f5047b 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 @@ -23,11 +23,11 @@ CREATE TABLE DM_DEVICE_CERTIFICATE ( SERIAL_NUMBER VARCHAR2(500) DEFAULT NULL, CERTIFICATE BLOB DEFAULT NULL, PRIMARY KEY (ID) -); - +) +/ -- Generate ID using sequence and trigger -CREATE SEQUENCE DM_DEVICE_CERTIFICATE_seq START WITH 1 INCREMENT BY 1; - +CREATE SEQUENCE DM_DEVICE_CERTIFICATE_seq START WITH 1 INCREMENT BY 1 NOCACHE +/ CREATE OR REPLACE TRIGGER DM_DEVICE_CERTIFICATE_seq_tr BEFORE INSERT ON DM_DEVICE_CERTIFICATE FOR EACH ROW WHEN (NEW.ID IS NULL)