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