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