|
|
|
@ -748,6 +748,26 @@ WHEN (NEW.ID IS NULL)
|
|
|
|
|
|
|
|
|
|
-- POLICY RELATED TABLES FINISHED --
|
|
|
|
|
|
|
|
|
|
CREATE TABLE DM_APP_ICONS (
|
|
|
|
|
ID NUMBER(10) NOT NULL,
|
|
|
|
|
ICON_PATH VARCHAR2(150) DEFAULT NULL,
|
|
|
|
|
PACKAGE_NAME VARCHAR2(150) NOT NULL,
|
|
|
|
|
VERSION VARCHAR2(50) DEFAULT '1.1.0',
|
|
|
|
|
PRIMARY KEY (ID)
|
|
|
|
|
)
|
|
|
|
|
/
|
|
|
|
|
|
|
|
|
|
-- Generate ID using sequence and trigger
|
|
|
|
|
CREATE SEQUENCE DM_APP_ICONS_seq START WITH 1 INCREMENT BY 1 NOCACHE
|
|
|
|
|
/
|
|
|
|
|
CREATE OR REPLACE TRIGGER DM_APP_ICONS_seq_tr
|
|
|
|
|
BEFORE INSERT ON DM_APP_ICONS FOR EACH ROW
|
|
|
|
|
WHEN (NEW.ID IS NULL)
|
|
|
|
|
BEGIN
|
|
|
|
|
SELECT DM_APP_ICONS_seq.NEXTVAL INTO :NEW.ID FROM DUAL;
|
|
|
|
|
END;
|
|
|
|
|
/
|
|
|
|
|
|
|
|
|
|
-- NOTIFICATION TABLE --
|
|
|
|
|
CREATE TABLE DM_NOTIFICATION (
|
|
|
|
|
NOTIFICATION_ID NUMBER(10) NOT NULL,
|
|
|
|
|