diff --git a/migration/354a-trunk/postgresql/594_BF2872841_add_BOMRollup_ProductItem_fix.sql b/migration/354a-trunk/postgresql/594_BF2872841_add_BOMRollup_ProductItem_fix.sql index 995906850a..9d52a8b503 100644 --- a/migration/354a-trunk/postgresql/594_BF2872841_add_BOMRollup_ProductItem_fix.sql +++ b/migration/354a-trunk/postgresql/594_BF2872841_add_BOMRollup_ProductItem_fix.sql @@ -1,9 +1,9 @@ -- -- If you already run script 592, this script will fix issues introduced, else this script does not have any effect -delete from AD_process_para_trl t +delete from AD_process_para_trl where exists ( select 1 from AD_Process_para pp - where pp.AD_process_ID=53062 and pp.ColumnName='ProductType' and pp.AD_Process_para_ID=t.AD_Process_para_ID + where pp.AD_process_ID=53062 and pp.ColumnName='ProductType' and pp.AD_Process_para_ID=AD_process_para_trl.AD_Process_para_ID and pp.AD_Process_para_ID=1000005 ) ;