|
|
@ -51,3 +51,27 @@ FOR EACH ROW
|
|
|
|
SELECT IOS_FEATURE_ID_INC_SEQ.NEXTVAL INTO :NEW.ID FROM DUAL;
|
|
|
|
SELECT IOS_FEATURE_ID_INC_SEQ.NEXTVAL INTO :NEW.ID FROM DUAL;
|
|
|
|
END;
|
|
|
|
END;
|
|
|
|
/
|
|
|
|
/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
|
|
|
|
-- Table `IOS_DEVICE_PROFILE`
|
|
|
|
|
|
|
|
-- -----------------------------------------------------
|
|
|
|
|
|
|
|
CREATE TABLE IOS_DEVICE_PROFILE (
|
|
|
|
|
|
|
|
ID NUMBER(10) NOT NULL,
|
|
|
|
|
|
|
|
OPERATION_ID VARCHAR2(10) NOT NULL,
|
|
|
|
|
|
|
|
OPERATION_CODE VARCHAR2(1000) NULL,
|
|
|
|
|
|
|
|
PROFILE_ID VARCHAR2(1000) NULL,
|
|
|
|
|
|
|
|
DEVICE_IDENTIFICATION VARCHAR2(300) DEFAULT NULL,
|
|
|
|
|
|
|
|
PROPERTIES CLOB DEFAULT NULL,
|
|
|
|
|
|
|
|
PRIMARY KEY (ID)
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Generate ID using sequence and trigger
|
|
|
|
|
|
|
|
CREATE SEQUENCE IOS_DEVICE_PROFILE_seq START WITH 1 INCREMENT BY 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE OR REPLACE TRIGGER IOS_DEVICE_PROFILE_seq_tr
|
|
|
|
|
|
|
|
BEFORE INSERT ON IOS_DEVICE_PROFILE FOR EACH ROW
|
|
|
|
|
|
|
|
WHEN (NEW.ID IS NULL)
|
|
|
|
|
|
|
|
BEGIN
|
|
|
|
|
|
|
|
SELECT IOS_DEVICE_PROFILE_seq.NEXTVAL INTO :NEW.ID FROM DUAL;
|
|
|
|
|
|
|
|
END;
|
|
|
|
|
|
|
|
/
|