From 805882802ef67a315870dd2ec3d4d56247a0eb96 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Wed, 3 Sep 2008 09:54:00 +0000 Subject: [PATCH] BF [ 2090815 ] Percent utilization signum in S_Resource --- migration/352a-trunk/284_BF2090815.sql | 25 +++++++++++++++++++ .../352a-trunk/postgresql/284_BF2090815.sql | 25 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 migration/352a-trunk/284_BF2090815.sql create mode 100644 migration/352a-trunk/postgresql/284_BF2090815.sql diff --git a/migration/352a-trunk/284_BF2090815.sql b/migration/352a-trunk/284_BF2090815.sql new file mode 100644 index 0000000000..9626e160bf --- /dev/null +++ b/migration/352a-trunk/284_BF2090815.sql @@ -0,0 +1,25 @@ +-- Sep 3, 2008 12:46:45 PM EEST +-- +UPDATE AD_Column SET AD_Reference_ID=22, DefaultValue='100', IsMandatory='Y', ValueMin='0',Updated=TO_DATE('2008-09-03 12:46:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53272 +; + +-- Sep 3, 2008 12:46:49 PM EEST +-- +ALTER TABLE S_Resource MODIFY PercentUtilization NUMBER DEFAULT 100 +; + +-- Sep 3, 2008 12:46:49 PM EEST +-- +UPDATE S_Resource SET PercentUtilization=100 WHERE PercentUtilization IS NULL +; + +-- Sep 3, 2008 12:46:49 PM EEST +-- +ALTER TABLE S_Resource MODIFY PercentUtilization NOT NULL +; + +-- Sep 3, 2008 12:46:49 PM EEST +-- +ALTER TABLE S_Resource ADD CONSTRAINT CHK_COL_53272 CHECK (PercentUtilization>=0) +; + diff --git a/migration/352a-trunk/postgresql/284_BF2090815.sql b/migration/352a-trunk/postgresql/284_BF2090815.sql new file mode 100644 index 0000000000..e0aa8ee1b7 --- /dev/null +++ b/migration/352a-trunk/postgresql/284_BF2090815.sql @@ -0,0 +1,25 @@ +-- Sep 3, 2008 12:46:45 PM EEST +-- +UPDATE AD_Column SET AD_Reference_ID=22, DefaultValue='100', IsMandatory='Y', ValueMin='0',Updated=TO_TIMESTAMP('2008-09-03 12:46:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53272 +; + +-- Sep 3, 2008 12:46:49 PM EEST +-- +insert into t_alter_column values('s_resource','PercentUtilization','NUMERIC',null,'100') +; + +-- Sep 3, 2008 12:46:49 PM EEST +-- +UPDATE S_Resource SET PercentUtilization=100 WHERE PercentUtilization IS NULL +; + +-- Sep 3, 2008 12:46:49 PM EEST +-- +insert into t_alter_column values('s_resource','PercentUtilization',null,'NOT NULL',null) +; + +-- Sep 3, 2008 12:46:49 PM EEST +-- +ALTER TABLE S_Resource ADD CONSTRAINT CHK_COL_53272 CHECK (PercentUtilization>=0) +; +