--- ABS-16751
-------------------------   WEBMENUDIALOG   --------------------------------------------
DROP INDEX XAK1WEBMENUDIALOG;

CREATE UNIQUE INDEX XAK1WEBMENUDIALOG ON WEBMENUDIALOG (WEBMENUGROUP_ID ASC, DIALOG_ID ASC, BIANALYSIS ASC, BIFILTER ASC);

--- ABS-16749
-------------------------   PRODUCTLISTPERCUSTOMER   -----------------------------------
ALTER TABLE PRODUCTLISTPERCUSTOMER ADD (RENTCUSTBUDGETDEFINITION_ID NUMBER NULL,
					SALESCUSTBUDGETDEFINITION_ID NUMBER NULL);

CREATE INDEX XIF2PRODUCTLISTPERCUSTOMER ON PRODUCTLISTPERCUSTOMER (RENTCUSTBUDGETDEFINITION_ID ASC);

CREATE INDEX XIF3PRODUCTLISTPERCUSTOMER ON PRODUCTLISTPERCUSTOMER (SALESCUSTBUDGETDEFINITION_ID ASC);

ALTER TABLE PRODUCTLISTPERCUSTOMER ADD CONSTRAINT PRODUCTLISTPERCUSTOMER_RBUGDEF FOREIGN KEY (RENTCUSTBUDGETDEFINITION_ID) 
REFERENCES CUSTOMERBUDGETDEFINITION (CUSTOMERBUDGETDEFINITION_ID) ON DELETE SET NULL;

ALTER TABLE PRODUCTLISTPERCUSTOMER ADD CONSTRAINT PRODUCTLISTPERCUSTOMER_SBUGDEF FOREIGN KEY (SALESCUSTBUDGETDEFINITION_ID) 
REFERENCES CUSTOMERBUDGETDEFINITION (CUSTOMERBUDGETDEFINITION_ID) ON DELETE SET NULL;