Resolved script issue in oracle db script.

revert-dabc3590
Harshan Liyanage 7 years ago
parent 3a4d58fb54
commit 72e155eb65

@ -68,18 +68,18 @@ FOR EACH ROW
-- ----------------------------------------------------- -- -----------------------------------------------------
-- Sequence `WINDOWS_ENROLLMENT_TOKEN_ID_INC_SEQ` -- 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` -- 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 BEFORE INSERT
ON WINDOWS_ENROLLMENT_TOKEN ON WINDOWS_ENROLLMENT_TOKEN
REFERENCING NEW AS NEW REFERENCING NEW AS NEW
FOR EACH ROW FOR EACH ROW
BEGIN 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; END;
/ /
Loading…
Cancel
Save