Merge pull request #820 from harshanL/master

Resolved script issue in oracle db script.
revert-dabc3590
Kamidu Sachith Punchihewa 7 years ago committed by GitHub
commit fc77c82d8b

@ -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;
/
Loading…
Cancel
Save