From 133edfb2db78edd78f72145b27e4acfb14c11b0a Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Tue, 17 Feb 2009 08:38:48 +0000 Subject: [PATCH] Rename PP_Order_BOMLineMA TO PP_Cost_CollectorMA http://sourceforge.net/tracker2/?func=detail&aid=2606690&group_id=176962&atid=934929 Fix oracle script --- .../426_001_BF2606690CostCollectorMA.sql | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/migration/353a-trunk/oracle/426_001_BF2606690CostCollectorMA.sql b/migration/353a-trunk/oracle/426_001_BF2606690CostCollectorMA.sql index 2bdd977977..07029b3b4e 100644 --- a/migration/353a-trunk/oracle/426_001_BF2606690CostCollectorMA.sql +++ b/migration/353a-trunk/oracle/426_001_BF2606690CostCollectorMA.sql @@ -1,3 +1,15 @@ +ALTER TABLE PP_Order_BOMLineMA RENAME TO PP_Cost_CollectorMA; +ALTER TABLE PP_Cost_CollectorMA RENAME COLUMN pp_order_bomlinema_id TO pp_cost_collectorma_id; +ALTER TABLE pp_cost_collectorma DROP CONSTRAINT pporderbomline_pporderbomlinem; +ALTER TABLE pp_cost_collectorma DROP CONSTRAINT pp_order_bomlinema_key; +ALTER TABLE pp_cost_collectorma ADD CONSTRAINT pp_cost_collectorma_key PRIMARY KEY(pp_cost_collectorma_id); +ALTER TABLE PP_Cost_CollectorMA RENAME COLUMN pp_order_bomline_id TO pp_cost_collector_id; +ALTER TABLE pp_cost_collectorma ADD CONSTRAINT ppcostcollector_ppccma FOREIGN KEY (pp_cost_collector_id) + REFERENCES pp_cost_collector (pp_cost_collector_id); +--ALTER TABLE pp_cost_collectorma DROP CONSTRAINT pp_order_bomlinema_isactive_check; +ALTER TABLE pp_cost_collectorma ADD CONSTRAINT pp_ccma_isactive_check CHECK (isactive IN('Y','N')); + + -- Feb 13, 2009 11:10:45 AM ECT -- Fix Allocation with Collector Cost UPDATE AD_Table SET Name='Manufacturing Order MA', TableName='PP_Cost_CollectorMA',Updated=TO_DATE('2009-02-13 11:10:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Table_ID=53062 @@ -265,21 +277,10 @@ UPDATE C_DocType SET DocNoSequence_ID=53272,Updated=TO_DATE('2009-02-16 14:26:40 ','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=50013 ; -ALTER TABLE PP_Order_BOMLineMA RENAME TO PP_Cost_CollectorMA; -ALTER TABLE PP_Cost_CollectorMA RENAME COLUMN pp_order_bomlinema_id TO pp_cost_collectorma_id; -ALTER TABLE pp_cost_collectorma DROP CONSTRAINT pporderbomline_pporderbomlinem; -ALTER TABLE pp_cost_collectorma DROP CONSTRAINT pp_order_bomlinema_key; -ALTER TABLE pp_cost_collectorma ADD CONSTRAINT pp_cost_collectorma_key PRIMARY KEY(pp_cost_collectorma_id); -ALTER TABLE PP_Cost_CollectorMA RENAME COLUMN pp_order_bomline_id TO pp_cost_collector_id; -ALTER TABLE pp_cost_collectorma ADD CONSTRAINT ppcostcollector_ppcostcollectorma FOREIGN KEY (pp_cost_collector_id) - REFERENCES pp_cost_collector (pp_cost_collector_id); -ALTER TABLE pp_cost_collectorma DROP CONSTRAINT pp_order_bomlinema_isactive_check; -ALTER TABLE pp_cost_collectorma ADD CONSTRAINT pp_cost_collectorma_isactive_check CHECK (isactive IN('Y','N')); - DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53170; DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53171; DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53172; DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53173; DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53174; DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53175; -DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53176; \ No newline at end of file +DELETE FROM AD_Sequence WHERE AD_Sequence_ID=53176;