salix/db/versions/.archive/10306-turquoiseCyca/00-deliveryInformation.sql

4 lines
268 B
SQL

ALTER TABLE edi.deliveryInformation DROP KEY deliveryInformation_UN;
ALTER TABLE edi.deliveryInformation ADD CONSTRAINT deliveryInformation_UN
UNIQUE KEY (Location, LatestDeliveryDateTime, FirstOrderDateTime, LatestOrderDateTime, supplyResponseID, DeliveryType);