@ -397,10 +397,7 @@ CREATE TABLE DM_DEVICE_POLICY_APPLIED (
CONSTRAINT PK_DM_POLICY_DEV_APPLIED PRIMARY KEY (ID) ,
CONSTRAINT FK_DM_POLICY_DEV_APPLIED
FOREIGN KEY (DEVICE_ID )
REFERENCES DM_DEVICE (ID ),
CONSTRAINT FK_DM_POLICY_DEV_APPLY_POLICY
FOREIGN KEY (POLICY_ID )
REFERENCES DM_POLICY (ID )
REFERENCES DM_DEVICE (ID )
)
/
-- Generate ID using sequence and trigger