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 e390112fc4..6920d97711 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