|
|
|
@ -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;
|
|
|
|
|
/
|