From 3b92d9a3bec52c872e52c84926a560cbdc0fa80d Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 11 Feb 2014 17:54:53 -0500 Subject: [PATCH] IDEMPIERE-391 Scheduler improvements / found problem on 912_IDEMPIERE_391.sql migrating a 360 database with a crontab scheduler configured --- migration/360lts-i1.0a/oracle/912_IDEMPIERE_391.sql | 4 ++++ migration/360lts-i1.0a/postgresql/912_IDEMPIERE_391.sql | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/migration/360lts-i1.0a/oracle/912_IDEMPIERE_391.sql b/migration/360lts-i1.0a/oracle/912_IDEMPIERE_391.sql index a06964a2ff..e1431f46d7 100644 --- a/migration/360lts-i1.0a/oracle/912_IDEMPIERE_391.sql +++ b/migration/360lts-i1.0a/oracle/912_IDEMPIERE_391.sql @@ -1639,6 +1639,7 @@ from c_acctprocessor where not exists (select 1 from ad_schedule where coalesce(c_acctprocessor.frequencytype,' ') =coalesce(ad_schedule.frequencytype,' ') and coalesce(c_acctprocessor.frequency,-1) =coalesce(ad_schedule.frequency,-1) +and ad_schedule.scheduletype='F' ) ) ; @@ -1653,6 +1654,7 @@ from ad_alertprocessor where not exists (select 1 from ad_schedule where coalesce(ad_alertprocessor.frequencytype,' ') =coalesce(ad_schedule.frequencytype,' ') and coalesce(ad_alertprocessor.frequency,-1) =coalesce(ad_schedule.frequency,-1) +and ad_schedule.scheduletype='F' ) ) ; @@ -1667,6 +1669,7 @@ from r_requestprocessor where not exists (select 1 from ad_schedule where coalesce(r_requestprocessor.frequencytype,' ') =coalesce(ad_schedule.frequencytype,' ') and coalesce(r_requestprocessor.frequency,-1) =coalesce(ad_schedule.frequency,-1) +and ad_schedule.scheduletype='F' ) ) ; @@ -1681,6 +1684,7 @@ from ad_workflowprocessor where not exists (select 1 from ad_schedule where coalesce(ad_workflowprocessor.frequencytype,' ') =coalesce(ad_schedule.frequencytype,' ') and coalesce(ad_workflowprocessor.frequency,-1) =coalesce(ad_schedule.frequency,-1) +and ad_schedule.scheduletype='F' ) ) ; diff --git a/migration/360lts-i1.0a/postgresql/912_IDEMPIERE_391.sql b/migration/360lts-i1.0a/postgresql/912_IDEMPIERE_391.sql index e57743b5ee..6598451135 100644 --- a/migration/360lts-i1.0a/postgresql/912_IDEMPIERE_391.sql +++ b/migration/360lts-i1.0a/postgresql/912_IDEMPIERE_391.sql @@ -1639,6 +1639,7 @@ from c_acctprocessor where not exists (select 1 from ad_schedule where coalesce(c_acctprocessor.frequencytype,' ') =coalesce(ad_schedule.frequencytype,' ') and coalesce(c_acctprocessor.frequency,-1) =coalesce(ad_schedule.frequency,-1) +and ad_schedule.scheduletype='F' ) ) as x ; @@ -1653,6 +1654,7 @@ from ad_alertprocessor where not exists (select 1 from ad_schedule where coalesce(ad_alertprocessor.frequencytype,' ') =coalesce(ad_schedule.frequencytype,' ') and coalesce(ad_alertprocessor.frequency,-1) =coalesce(ad_schedule.frequency,-1) +and ad_schedule.scheduletype='F' ) ) as x ; @@ -1667,6 +1669,7 @@ from r_requestprocessor where not exists (select 1 from ad_schedule where coalesce(r_requestprocessor.frequencytype,' ') =coalesce(ad_schedule.frequencytype,' ') and coalesce(r_requestprocessor.frequency,-1) =coalesce(ad_schedule.frequency,-1) +and ad_schedule.scheduletype='F' ) ) as x ; @@ -1681,6 +1684,7 @@ from ad_workflowprocessor where not exists (select 1 from ad_schedule where coalesce(ad_workflowprocessor.frequencytype,' ') =coalesce(ad_schedule.frequencytype,' ') and coalesce(ad_workflowprocessor.frequency,-1) =coalesce(ad_schedule.frequency,-1) +and ad_schedule.scheduletype='F' ) ) as x ;