From cff91e107c3a8c99523ec5a1a2d979a9398c26ab Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 12 Dec 2009 21:40:33 +0000 Subject: [PATCH] FR [2906574] - Product Central Data https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2906574&group_id=176962 Product tab is already bloated - deflating - made costs tab independent (not embedded) --- .../641_FRFR2906574_Product-costs-deflate.sql | 98 +++++++++++++++++++ .../641_FRFR2906574_Product-costs-deflate.sql | 98 +++++++++++++++++++ 2 files changed, 196 insertions(+) create mode 100644 migration/354a-trunk/oracle/641_FRFR2906574_Product-costs-deflate.sql create mode 100644 migration/354a-trunk/postgresql/641_FRFR2906574_Product-costs-deflate.sql diff --git a/migration/354a-trunk/oracle/641_FRFR2906574_Product-costs-deflate.sql b/migration/354a-trunk/oracle/641_FRFR2906574_Product-costs-deflate.sql new file mode 100644 index 0000000000..891a973478 --- /dev/null +++ b/migration/354a-trunk/oracle/641_FRFR2906574_Product-costs-deflate.sql @@ -0,0 +1,98 @@ +-- Dec 12, 2009 4:25:41 PM COT +-- 2906574_Product Central Data +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=58323 +; + +-- Dec 12, 2009 4:25:41 PM COT +DELETE FROM AD_Field WHERE AD_Field_ID=58323 +; + +-- Dec 12, 2009 4:26:15 PM COT +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=58689 +; + +-- Dec 12, 2009 4:26:15 PM COT +DELETE FROM AD_Column WHERE AD_Column_ID=58689 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=58303 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=58304 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=58305 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=58306 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=58307 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=58308 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=58309 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=58310 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=58311 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=58312 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=58313 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=58314 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=58315 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=58316 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=58317 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=58318 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=58319 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=58320 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=58321 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=58322 +; + +ALTER TABLE m_product DROP COLUMN testvalue; diff --git a/migration/354a-trunk/postgresql/641_FRFR2906574_Product-costs-deflate.sql b/migration/354a-trunk/postgresql/641_FRFR2906574_Product-costs-deflate.sql new file mode 100644 index 0000000000..fd4fbb9477 --- /dev/null +++ b/migration/354a-trunk/postgresql/641_FRFR2906574_Product-costs-deflate.sql @@ -0,0 +1,98 @@ +-- Dec 12, 2009 4:25:41 PM COT +-- 2906574_Product Central Data +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=58323 +; + +-- Dec 12, 2009 4:25:41 PM COT +DELETE FROM AD_Field WHERE AD_Field_ID=58323 +; + +-- Dec 12, 2009 4:26:15 PM COT +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=58689 +; + +-- Dec 12, 2009 4:26:15 PM COT +DELETE FROM AD_Column WHERE AD_Column_ID=58689 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=58303 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=58304 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=58305 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=58306 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=58307 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=58308 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=58309 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=58310 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=58311 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=58312 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=58313 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=58314 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=58315 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=58316 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=58317 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=58318 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=58319 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=58320 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=58321 +; + +-- Dec 12, 2009 4:30:43 PM COT +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=58322 +; + +ALTER TABLE m_product DROP COLUMN testvalue;