From 652bed012c9fc75c909e31dd051035ecc79300d0 Mon Sep 17 00:00:00 2001 From: Derek Hulley Date: Mon, 14 May 2007 16:03:34 +0000 Subject: [PATCH] Fixed AR-1425: Patches that weren't successfully executed are now re-examined for applicability. Changed the applicability version numbers of several patches that were merged over from V2.0. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5672 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../alfresco/patch/patch-services-context.xml | 20 +++++++++---------- .../repo/admin/patch/PatchServiceImpl.java | 8 ++++++-- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/config/alfresco/patch/patch-services-context.xml b/config/alfresco/patch/patch-services-context.xml index 826cee884b..30fa729fda 100644 --- a/config/alfresco/patch/patch-services-context.xml +++ b/config/alfresco/patch/patch-services-context.xml @@ -521,8 +521,8 @@ patch.versionHistoryPerformance patch.versionHistoryPerformance.description 0 - 24 - 25 + 38 + 39 @@ -531,8 +531,8 @@ patch.db-V1.4-PostgresFKIndexes patch.schemaUpgradeScript.description 21 - 24 - 25 + 51 + 52 classpath:alfresco/dbscripts/upgrade/1.4/${db.script.dialect}/AlfrescoSchemaUpdate-1.4-PostgresFKIndexes.sql @@ -685,8 +685,8 @@ patch.groupNamesAsIdentifiers patch.groupNamesAsIdentifiers.description 0 - 38 - 39 + 51 + 52 @@ -700,8 +700,8 @@ patch.invalidUserPersonAndGroup patch.invalidUserPersonAndGroup.description 0 - 39 - 40 + 51 + 52 @@ -718,8 +718,8 @@ patch.AVMGuidPatch patch.AVMGuidPatch.description 0 - 50 - 51 + 51 + 52 diff --git a/source/java/org/alfresco/repo/admin/patch/PatchServiceImpl.java b/source/java/org/alfresco/repo/admin/patch/PatchServiceImpl.java index 09dd8cb2dd..e4ed3e73ad 100644 --- a/source/java/org/alfresco/repo/admin/patch/PatchServiceImpl.java +++ b/source/java/org/alfresco/repo/admin/patch/PatchServiceImpl.java @@ -163,8 +163,12 @@ public class PatchServiceImpl implements PatchService AppliedPatch appliedPatch = appliedPatchesById.get(id); if (appliedPatch != null && appliedPatch.getSucceeded()) { - // this has already been done - return true; + if (appliedPatch.getWasExecuted() && appliedPatch.getSucceeded()) + { + // It was sucessfully executed + return true; + } + // We give the patch another chance } // ensure that dependencies have been done