diff --git a/config/alfresco/core-services-context.xml b/config/alfresco/core-services-context.xml
index 07fb3d9de5..9624c43f87 100644
--- a/config/alfresco/core-services-context.xml
+++ b/config/alfresco/core-services-context.xml
@@ -458,12 +458,6 @@
-
- ${version.store.onlyUseDeprecatedV1}
-
-
-
-
${version.store.versionComparatorClass}
@@ -514,38 +508,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 500
-
-
-
diff --git a/config/alfresco/dbscripts/create/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoCreate-ActivityTables.sql b/config/alfresco/dbscripts/create/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoCreate-ActivityTables.sql
index 3de1040693..1f038c7296 100644
--- a/config/alfresco/dbscripts/create/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoCreate-ActivityTables.sql
+++ b/config/alfresco/dbscripts/create/org.hibernate.dialect.MySQLInnoDBDialect/AlfrescoCreate-ActivityTables.sql
@@ -53,16 +53,3 @@ CREATE TABLE alf_activity_post
KEY post_jobtasknode_idx (job_task_node),
KEY post_status_idx (status)
) ENGINE=InnoDB;
-
-
---
--- Record script finish
---
-DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.0-ActivityTables';
-INSERT INTO alf_applied_patch
- (id, description, fixes_from_schema, fixes_to_schema, applied_to_schema, target_schema, applied_on_date, applied_to_server, was_executed, succeeded, report)
- VALUES
- (
- 'patch.db-V3.0-ActivityTables', 'Manually executed script upgrade V3.0: Activity Tables',
- 0, 125, -1, 126, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
- );
\ No newline at end of file
diff --git a/config/alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-ActivityTables.sql b/config/alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-ActivityTables.sql
index 6d4de97710..19ed68c221 100644
--- a/config/alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-ActivityTables.sql
+++ b/config/alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-ActivityTables.sql
@@ -56,16 +56,3 @@ CREATE TABLE alf_activity_post
);
CREATE INDEX post_jobtasknode_idx ON alf_activity_post (job_task_node);
CREATE INDEX post_status_idx ON alf_activity_post (status);
-
-
---
--- Record script finish
---
-DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.0-ActivityTables';
-INSERT INTO alf_applied_patch
- (id, description, fixes_from_schema, fixes_to_schema, applied_to_schema, target_schema, applied_on_date, applied_to_server, was_executed, succeeded, report)
- VALUES
- (
- 'patch.db-V3.0-ActivityTables', 'Manually executed script upgrade V3.0: Activity Tables',
- 0, 125, -1, 126, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
- );
\ No newline at end of file
diff --git a/config/alfresco/dbscripts/db-schema-context.xml b/config/alfresco/dbscripts/db-schema-context.xml
index 20176cd409..392131a4b2 100644
--- a/config/alfresco/dbscripts/db-schema-context.xml
+++ b/config/alfresco/dbscripts/db-schema-context.xml
@@ -55,7 +55,6 @@
-
@@ -89,7 +88,6 @@
-
diff --git a/config/alfresco/dbscripts/upgrade/3.1/org.hibernate.dialect.MySQLInnoDBDialect/IPv6-patch.sql b/config/alfresco/dbscripts/upgrade/3.1/org.hibernate.dialect.MySQLInnoDBDialect/IPv6-patch.sql
deleted file mode 100644
index 7baf781753..0000000000
--- a/config/alfresco/dbscripts/upgrade/3.1/org.hibernate.dialect.MySQLInnoDBDialect/IPv6-patch.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Title: Increase the ipAddress field length to allow IPv6 adresses
--- Database: MySQL
--- Since: V3.1 schema 1009
---
--- Please contact support@alfresco.com if you need assistance with the upgrade.
---
-
-ALTER TABLE alf_server MODIFY ip_address varchar(39) NOT NULL;
-
---
--- Record script finish
---
-DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.1-Allow-IPv6';
-INSERT INTO alf_applied_patch
- (id, description, fixes_from_schema, fixes_to_schema, applied_to_schema, target_schema, applied_on_date, applied_to_server, was_executed, succeeded, report)
- VALUES
- (
- 'patch.db-V3.1-Allow-IPv6', 'Manually executed script upgrade V3.1: Increase the ipAddress field length',
- 0, 2019, -1, 2020, null, 'UNKNOWN', ${TRUE}, ${TRUE}, 'Script completed'
- );
diff --git a/config/alfresco/dbscripts/upgrade/3.1/org.hibernate.dialect.PostgreSQLDialect/IPv6-patch.sql b/config/alfresco/dbscripts/upgrade/3.1/org.hibernate.dialect.PostgreSQLDialect/IPv6-patch.sql
deleted file mode 100644
index 52919ad710..0000000000
--- a/config/alfresco/dbscripts/upgrade/3.1/org.hibernate.dialect.PostgreSQLDialect/IPv6-patch.sql
+++ /dev/null
@@ -1,21 +0,0 @@
---
--- Title: Increase the ipAddress field length to allow IPv6 adresses
--- Database: PostgreSQL
--- Since: V3.1 schema 1009
---
--- Please contact support@alfresco.com if you need assistance with the upgrade.
---
-
-ALTER TABLE alf_server ALTER COLUMN ip_address TYPE varchar(39);
-
---
--- Record script finish
---
-DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.1-Allow-IPv6';
-INSERT INTO alf_applied_patch
- (id, description, fixes_from_schema, fixes_to_schema, applied_to_schema, target_schema, applied_on_date, applied_to_server, was_executed, succeeded, report)
- VALUES
- (
- 'patch.db-V3.1-Allow-IPv6', 'Manually executed script upgrade V3.1: Increase the ipAddress field length',
- 0, 1009, -1, 1010, null, 'UNKOWN', TRUE, TRUE, 'Script completed'
- );
diff --git a/config/alfresco/messages/patch-service.properties b/config/alfresco/messages/patch-service.properties
index 85a18ff848..91e8a7a72e 100644
--- a/config/alfresco/messages/patch-service.properties
+++ b/config/alfresco/messages/patch-service.properties
@@ -203,7 +203,6 @@ patch.tagRootCategory.description=Adds 'Tags' as new top-level category root.
patch.sitesFolder.description=Adds 'Sites' folder to Company Home.
patch.updateDmPermissions.description=Update ACLs on all DM node objects to the new 3.0 permission model
-patch.updateDmPermissions.result=Updated ACLs. Created {0} defining ACLs.
patch.db-V3.0-0-CreateActivitiesExtras.description=Replaced by 'patch.db-V3.0-ActivityTables', which must run first.
@@ -211,9 +210,6 @@ patch.sitePermissionRefactorPatch.description=Create permission groups for sites
patch.sitePermissionRefactorPatch.result=Groups have been created for all sites and user's allocated accordingly.
patch.migrateVersionStore.description=Version Store migration (from lightWeightVersionStore to version2Store)
-patch.migrateVersionStore.incomplete=Version Store migration incomplete.
-patch.migrateVersionStore.done=Version Store migration completed.
-patch.migrateVersionStore.bypassingPatch=Bypass Version Store migration patch since scheduled to run as job
patch.inviteEmailTemplate.description=Adds invite email template to invite space
diff --git a/config/alfresco/node-services-context.xml b/config/alfresco/node-services-context.xml
index 61ff230c80..8a4ae7595e 100644
--- a/config/alfresco/node-services-context.xml
+++ b/config/alfresco/node-services-context.xml
@@ -179,7 +179,6 @@
${version.store.version2Store}
-
diff --git a/config/alfresco/patch/patch-services-context.xml b/config/alfresco/patch/patch-services-context.xml
index 8d140a0d7f..4009435815 100644
--- a/config/alfresco/patch/patch-services-context.xml
+++ b/config/alfresco/patch/patch-services-context.xml
@@ -754,156 +754,74 @@
4.2.x
-
-