From 72e155eb655bcfe9d4c9ba213ad8b2249a3ea546 Mon Sep 17 00:00:00 2001 From: Harshan Liyanage Date: Fri, 8 Sep 2017 17:22:52 +0530 Subject: [PATCH] Resolved script issue in oracle db script. --- .../src/main/resources/dbscripts/plugins/oracle.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/features/mobile-plugins-feature/windows-plugin-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/dbscripts/plugins/oracle.sql b/features/mobile-plugins-feature/windows-plugin-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/dbscripts/plugins/oracle.sql index e390112fc..6920d9771 100644 --- a/features/mobile-plugins-feature/windows-plugin-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/dbscripts/plugins/oracle.sql +++ b/features/mobile-plugins-feature/windows-plugin-feature/org.wso2.carbon.device.mgt.mobile.windows.feature/src/main/resources/dbscripts/plugins/oracle.sql @@ -68,18 +68,18 @@ FOR EACH ROW -- ----------------------------------------------------- -- Sequence `WINDOWS_ENROLLMENT_TOKEN_ID_INC_SEQ` -- ----------------------------------------------------- -CREATE SEQUENCE WINDOWS_ENROLLMENT_TOKEN_ID_INC_SEQ START WITH 1 INCREMENT BY 1 NOCACHE +CREATE SEQUENCE WIN_ENR_TOKEN_ID_INC_SEQ START WITH 1 INCREMENT BY 1 NOCACHE / -- ----------------------------------------------------- -- Trigger `WINDOWS_ENROLLMENT_TOKEN_ID_INC_TRIG` -- ----------------------------------------------------- -CREATE OR REPLACE TRIGGER WINDOWS_ENROLLMENT_TOKEN_ID_INC_TRIG +CREATE OR REPLACE TRIGGER WIN_ENR_TOKEN_ID_INC_TRIG BEFORE INSERT ON WINDOWS_ENROLLMENT_TOKEN REFERENCING NEW AS NEW FOR EACH ROW BEGIN - SELECT WINDOWS_ENROLLMENT_TOKEN_ID_INC_SEQ.NEXTVAL INTO :NEW.ID FROM DUAL; + SELECT WIN_ENR_TOKEN_ID_INC_SEQ.NEXTVAL INTO :NEW.ID FROM DUAL; END; / \ No newline at end of file