Commit eddeb3ee authored by Mohammed Dohadwala's avatar Mohammed Dohadwala

Made changes to check duplication of records.

Now it uses frt_list, eff_from and valid_upto.
parent 17993343
-- Remove the existing Shipment foreign key referencing the old Freight List primary key
ALTER TABLE shipment
DROP CONSTRAINT FK_SHIPMENT_FRT_LIST;
-- Remove the existing Freight List primary key based only on FRT_LIST
ALTER TABLE freight_list
DROP CONSTRAINT FREIGHT_LIST_X;
-- Remove the old index associated with the previous primary key
DROP INDEX FREIGHT_LIST_X;
-- Create the new composite primary key using FRT_LIST and EFF_FROM
ALTER TABLE freight_list
ADD CONSTRAINT FREIGHT_LIST_X
PRIMARY KEY (frt_list, eff_from);
-- Configure the transaction ID to use FRT_LIST and EFF_FROM for uniqueness
UPDATE transetup
SET tran_id_col = 'frt_list,eff_from'
WHERE tran_window = 'w_frt_list';
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment