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) +; +