From 1c3c6b728edf6cd2f122aa2e8b00b14c6d1b3380 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 26 Mar 2011 00:26:00 -0500 Subject: [PATCH] BF [3139066] - False Mandary Logic for C_BPartner_Product/IsManufacturer https://sourceforge.net/tracker/?func=detail&atid=879332&aid=3139066&group_id=176962 --- migration/360lts-release/oracle/772_BF3139066.sql | 13 +++++++++++++ .../360lts-release/postgresql/772_BF3139066.sql | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 migration/360lts-release/oracle/772_BF3139066.sql create mode 100644 migration/360lts-release/postgresql/772_BF3139066.sql diff --git a/migration/360lts-release/oracle/772_BF3139066.sql b/migration/360lts-release/oracle/772_BF3139066.sql new file mode 100644 index 0000000000..f6875d2465 --- /dev/null +++ b/migration/360lts-release/oracle/772_BF3139066.sql @@ -0,0 +1,13 @@ +-- Dec 17, 2010 2:44:56 PM COT +-- BF3139066-False Mandary Logic for C_BPartner_Product/IsManufacturer +UPDATE AD_Column SET MandatoryLogic=NULL, DefaultValue='N',Updated=TO_DATE('2010-12-17 14:44:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=58799 +; + +-- Dec 17, 2010 2:44:59 PM COT +ALTER TABLE C_BPartner_Product MODIFY IsManufacturer CHAR(1) DEFAULT 'N' +; + +-- Dec 17, 2010 2:44:59 PM COT +UPDATE C_BPartner_Product SET IsManufacturer='N' WHERE IsManufacturer IS NULL +; + diff --git a/migration/360lts-release/postgresql/772_BF3139066.sql b/migration/360lts-release/postgresql/772_BF3139066.sql new file mode 100644 index 0000000000..84ed1af256 --- /dev/null +++ b/migration/360lts-release/postgresql/772_BF3139066.sql @@ -0,0 +1,13 @@ +-- Dec 17, 2010 2:44:56 PM COT +-- BF3139066-False Mandary Logic for C_BPartner_Product/IsManufacturer +UPDATE AD_Column SET MandatoryLogic=NULL, DefaultValue='N',Updated=TO_TIMESTAMP('2010-12-17 14:44:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=58799 +; + +-- Dec 17, 2010 2:44:59 PM COT +INSERT INTO t_alter_column values('c_bpartner_product','IsManufacturer','CHAR(1)',null,'N') +; + +-- Dec 17, 2010 2:44:59 PM COT +UPDATE C_BPartner_Product SET IsManufacturer='N' WHERE IsManufacturer IS NULL +; +