diff --git a/migration/331b-trunk/081_1881876.sql b/migration/331b-trunk/081_1881876.sql new file mode 100644 index 0000000000..aa918fdd8f --- /dev/null +++ b/migration/331b-trunk/081_1881876.sql @@ -0,0 +1,5 @@ +-- Jan 29, 2008 10:48:50 AM COT +-- 1877902 - Implement JSR 223: Scripting callout +UPDATE AD_Val_Rule SET Code='(EXISTS ( SELECT * FROM C_PeriodControl pc WHERE C_Period.C_Period_ID = pc.C_Period_ID AND pc.PeriodStatus = ''O'') OR EXISTS ( SELECT * FROM C_AcctSchema a, C_Period p WHERE C_Period.C_Period_ID = p.C_Period_ID AND a.AutoPeriodControl = ''Y'' AND ( (p.StartDate BETWEEN SYSDATE - a.Period_OpenHistory AND SYSDATE + a.Period_OpenFuture) OR (p.EndDate BETWEEN SYSDATE - a.Period_OpenHistory AND SYSDATE + a.Period_OpenFuture))))',Updated=TO_DATE('2008-01-29 10:48:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=215 +; + diff --git a/migration/331b-trunk/postgresql/081_1881876.sql b/migration/331b-trunk/postgresql/081_1881876.sql new file mode 100644 index 0000000000..be257a04e8 --- /dev/null +++ b/migration/331b-trunk/postgresql/081_1881876.sql @@ -0,0 +1,5 @@ +-- Jan 29, 2008 10:48:50 AM COT +-- 1877902 - Implement JSR 223: Scripting callout +UPDATE AD_Val_Rule SET Code='(EXISTS ( SELECT * FROM C_PeriodControl pc WHERE C_Period.C_Period_ID = pc.C_Period_ID AND pc.PeriodStatus = ''O'') OR EXISTS ( SELECT * FROM C_AcctSchema a, C_Period p WHERE C_Period.C_Period_ID = p.C_Period_ID AND a.AutoPeriodControl = ''Y'' AND ( (p.StartDate BETWEEN SYSDATE - a.Period_OpenHistory AND SYSDATE + a.Period_OpenFuture) OR (p.EndDate BETWEEN SYSDATE - a.Period_OpenHistory AND SYSDATE + a.Period_OpenFuture))))',Updated=TO_TIMESTAMP('2008-01-29 10:48:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=215 +; +