From 47efb5469644a3a94ddf428df3164d10d7dca652 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Thu, 8 Jan 2009 07:03:38 +0000 Subject: [PATCH] 380_BF2492444-2492437_RF2492429-2492433.sql : set PP_Cost_Collector.DocumentNo = PP_Cost_Collector_ID for backward compatibility --- .../oracle/380_BF2492444-2492437_RF2492429-2492433.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/migration/353a-trunk/oracle/380_BF2492444-2492437_RF2492429-2492433.sql b/migration/353a-trunk/oracle/380_BF2492444-2492437_RF2492429-2492433.sql index d7b2acf755..77e99a0382 100644 --- a/migration/353a-trunk/oracle/380_BF2492444-2492437_RF2492429-2492433.sql +++ b/migration/353a-trunk/oracle/380_BF2492444-2492437_RF2492429-2492433.sql @@ -582,6 +582,9 @@ UPDATE AD_Column SET AD_Reference_ID=10,Updated=TO_DATE('2009-01-02 02:51:16','Y ALTER TABLE PP_Cost_Collector MODIFY DocumentNo NVARCHAR2(30) DEFAULT NULL ; +-- Fix old records +update PP_Cost_Collector set DocumentNo=PP_Cost_Collector_ID where DocumentNo is null; + -- Jan 2, 2009 2:51:20 AM ECT -- Accounting Manufacturing Management ALTER TABLE PP_Cost_Collector MODIFY DocumentNo NOT NULL