From cc066a06c8448f0264c7a040b8dee206983a9eb2 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 25 Mar 2010 00:40:56 +0000 Subject: [PATCH] Refactor Query / FR [2975307] - AD_Menu_Trl overwritten by AD_Window Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2975307 --- ...91_FR2975307_SummaryMenuNotCentrallyMaintained.sql | 11 +++++------ ...91_FR2975307_SummaryMenuNotCentrallyMaintained.sql | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/migration/354a-trunk/oracle/691_FR2975307_SummaryMenuNotCentrallyMaintained.sql b/migration/354a-trunk/oracle/691_FR2975307_SummaryMenuNotCentrallyMaintained.sql index 9df5d00bb7..d3ab55c358 100644 --- a/migration/354a-trunk/oracle/691_FR2975307_SummaryMenuNotCentrallyMaintained.sql +++ b/migration/354a-trunk/oracle/691_FR2975307_SummaryMenuNotCentrallyMaintained.sql @@ -4,12 +4,11 @@ UPDATE AD_Menu SET IsCentrallyMaintained = 'N' -WHERE AD_Menu_ID IN - (SELECT AD_Menu_ID FROM AD_Menu - WHERE (AD_Window_ID IS NULL +WHERE AD_Window_ID IS NULL AND AD_Process_ID IS NULL AND AD_Form_ID IS NULL AND AD_Workflow_ID IS NULL - AND AD_Task_ID IS NULL) - ) -; \ No newline at end of file + AND AD_Workbench_ID IS NULL + AND AD_Task_ID IS NULL + AND IsSummary = 'Y' +; diff --git a/migration/354a-trunk/postgresql/691_FR2975307_SummaryMenuNotCentrallyMaintained.sql b/migration/354a-trunk/postgresql/691_FR2975307_SummaryMenuNotCentrallyMaintained.sql index 9df5d00bb7..d3ab55c358 100644 --- a/migration/354a-trunk/postgresql/691_FR2975307_SummaryMenuNotCentrallyMaintained.sql +++ b/migration/354a-trunk/postgresql/691_FR2975307_SummaryMenuNotCentrallyMaintained.sql @@ -4,12 +4,11 @@ UPDATE AD_Menu SET IsCentrallyMaintained = 'N' -WHERE AD_Menu_ID IN - (SELECT AD_Menu_ID FROM AD_Menu - WHERE (AD_Window_ID IS NULL +WHERE AD_Window_ID IS NULL AND AD_Process_ID IS NULL AND AD_Form_ID IS NULL AND AD_Workflow_ID IS NULL - AND AD_Task_ID IS NULL) - ) -; \ No newline at end of file + AND AD_Workbench_ID IS NULL + AND AD_Task_ID IS NULL + AND IsSummary = 'Y' +;