From 98f87b90aa08669483429c6457c71c9ea8812063 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Fri, 9 Jan 2009 09:04:54 +0000 Subject: [PATCH] 387_FR2493137_NewCostElementToGarden.sql : * delete M_Cost with AD_org_ID > 0, BUT! which are managed by Adempiere (AD_Client_ID<1000000) --- .../oracle/387_FR2493137_NewCostElementToGarden.sql | 3 ++- .../postgresql/387_FR2493137_NewCostElementToGarden.sql | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/migration/353a-trunk/oracle/387_FR2493137_NewCostElementToGarden.sql b/migration/353a-trunk/oracle/387_FR2493137_NewCostElementToGarden.sql index ca2b44ce93..e89a903286 100644 --- a/migration/353a-trunk/oracle/387_FR2493137_NewCostElementToGarden.sql +++ b/migration/353a-trunk/oracle/387_FR2493137_NewCostElementToGarden.sql @@ -3655,4 +3655,5 @@ UPDATE A_Asset a SET (Name, Description)=(SELECT SUBSTR((SELECT bp.Name FROM C_B UPDATE PP_Product_BOM SET Name='Assembly Front Leg', Value='PFrontLeg',Updated=TO_DATE('2009-01-07 12:27:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE PP_Product_BOM_ID=50003 ; -DELETE FROM M_Cost WHERE AD_Org_ID >0 ; +DELETE FROM M_Cost WHERE AD_Org_ID >0 AND AD_Client_ID < 1000000 +; diff --git a/migration/353a-trunk/postgresql/387_FR2493137_NewCostElementToGarden.sql b/migration/353a-trunk/postgresql/387_FR2493137_NewCostElementToGarden.sql index e9e1c6c9c1..b1e1cba43f 100644 --- a/migration/353a-trunk/postgresql/387_FR2493137_NewCostElementToGarden.sql +++ b/migration/353a-trunk/postgresql/387_FR2493137_NewCostElementToGarden.sql @@ -3654,5 +3654,5 @@ UPDATE A_Asset SET Name=SUBSTR((SELECT bp.Name FROM C_BPartner bp WHERE bp.C_BPa UPDATE PP_Product_BOM SET Name='Assembly Front Leg', Value='PFrontLeg',Updated=TO_TIMESTAMP('2009-01-07 12:27:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE PP_Product_BOM_ID=50003 ; -DELETE FROM M_Cost WHERE AD_Org_ID >0 ; - +DELETE FROM M_Cost WHERE AD_Org_ID >0 AND AD_Client_ID < 1000000 +;