diff --git a/config/alfresco/bootstrap-context.xml b/config/alfresco/bootstrap-context.xml
index 31b6af202a..49a9f63801 100644
--- a/config/alfresco/bootstrap-context.xml
+++ b/config/alfresco/bootstrap-context.xml
@@ -320,7 +320,6 @@
-
diff --git a/config/alfresco/dbscripts/create/org.hibernate.dialect.Dialect/AlfrescoPostCreate-JBPM-Extra.sql b/config/alfresco/dbscripts/create/org.hibernate.dialect.Dialect/AlfrescoPostCreate-JBPM-Extra.sql
index 75f6861e02..83e9f5a2f6 100644
--- a/config/alfresco/dbscripts/create/org.hibernate.dialect.Dialect/AlfrescoPostCreate-JBPM-Extra.sql
+++ b/config/alfresco/dbscripts/create/org.hibernate.dialect.Dialect/AlfrescoPostCreate-JBPM-Extra.sql
@@ -6,17 +6,5 @@
--
-- Please contact support@alfresco.com if you need assistance with the upgrade.
--
--- This patch is only required to fix JBPM columns on DB2.
+-- This script is only required to fix JBPM columns on DB2.
--
-
---
--- Record script finish
---
-DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.3-JBPM-Extra';
-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.3-JBPM-Extra', 'Manually executed script upgrade V3.3 fix problems in JBPM tables',
- 0, 4105, -1, 4106, null, 'UNKOWN', ${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 88fb1f54f1..68f770b93c 100644
--- a/config/alfresco/dbscripts/db-schema-context.xml
+++ b/config/alfresco/dbscripts/db-schema-context.xml
@@ -46,10 +46,6 @@
-
-
-
-
@@ -98,7 +94,6 @@
-
diff --git a/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.Dialect/authority-unique-idx.sql b/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.Dialect/authority-unique-idx.sql
deleted file mode 100644
index 9f4022b5b3..0000000000
--- a/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.Dialect/authority-unique-idx.sql
+++ /dev/null
@@ -1,20 +0,0 @@
---
--- Title: Upgrade to V3.4 - Ensure existence of unique index on alf_authority (DB2)
--- Database: Generic
--- Since: V3.4 schema 4100
--- Author: Derek Hulley
---
--- Please contact support@alfresco.com if you need assistance with the upgrade.
---
-
---
--- Record script finish
---
-DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.4-authority-unique-idx';
-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.4-authority-unique-idx', 'Manually executed script upgrade V3.4',
- 0, 4099, -1, 4100, null, 'UNKOWN', ${TRUE}, ${TRUE}, 'Script completed'
- );
diff --git a/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.Dialect/child-assoc-indexes.sql b/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.Dialect/child-assoc-indexes.sql
deleted file mode 100644
index a6c4b9deca..0000000000
--- a/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.Dialect/child-assoc-indexes.sql
+++ /dev/null
@@ -1,22 +0,0 @@
---
--- Title: Upgrade to V3.4 - Add alf_child_assoc.idx_alf_cass_pri index
--- Database: Generic
--- Since: V3.4 schema 4105
--- Author: unknown
---
--- Please contact support@alfresco.com if you need assistance with the upgrade.
---
-
-CREATE INDEX idx_alf_cass_pri ON alf_child_assoc (parent_node_id, is_primary, child_node_id); --(optional)
-
---
--- Record script finish
---
-DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.4-child-assoc-indexes';
-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.4-child-assoc-indexes', 'Manually executed script upgrade V3.4',
- 0, 4104, -1, 4105, null, 'UNKOWN', ${TRUE}, ${TRUE}, 'Script completed'
- );
diff --git a/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.Dialect/property-unique-ctx-idx.sql b/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.Dialect/property-unique-ctx-idx.sql
deleted file mode 100644
index dcc1d69578..0000000000
--- a/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.Dialect/property-unique-ctx-idx.sql
+++ /dev/null
@@ -1,24 +0,0 @@
---
--- Title: Upgrade to V3.4 - Add alf_prop_unique_ctx.prop1_id index
--- Database: MySQL
--- Since: V3.4 schema 4105
--- Author: Derek Hulley
---
--- Please contact support@alfresco.com if you need assistance with the upgrade.
---
-
--- Optional if upgrading from before 3.2.x
-
-CREATE INDEX fk_alf_propuctx_p1 ON alf_prop_unique_ctx(prop1_id); --(optional)
-
---
--- Record script finish
---
-DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.4-property-unique-ctx-idx';
-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.4-property-unique-ctx-idx', 'Manually executed script upgrade V3.4',
- 0, 4104, -1, 4105, null, 'UNKOWN', ${TRUE}, ${TRUE}, 'Script completed'
- );
diff --git a/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.MySQLInnoDBDialect/property-unique-ctx-value.sql b/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.MySQLInnoDBDialect/property-unique-ctx-value.sql
deleted file mode 100755
index 2537dbd0a3..0000000000
--- a/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.MySQLInnoDBDialect/property-unique-ctx-value.sql
+++ /dev/null
@@ -1,27 +0,0 @@
---
--- Title: Upgrade to V3.4 - Add alf_prop_unique_ctx.prop1_id column
--- Database: MySQL
--- Since: V3.4 schema 4105
--- Author: Derek Hulley
---
--- Please contact support@alfresco.com if you need assistance with the upgrade.
---
-
--- Optional if upgrading from before 3.2.x
-
-ALTER TABLE alf_prop_unique_ctx
- ADD COLUMN prop1_id BIGINT NULL AFTER value3_prop_id,
- ADD CONSTRAINT fk_alf_propuctx_p1 FOREIGN KEY (prop1_id) REFERENCES alf_prop_root (id)
-; --(optional)
-
---
--- Record script finish
---
-DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.4-property-unique-ctx-value';
-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.4-property-unique-ctx-value', 'Manually executed script upgrade V3.4',
- 0, 4104, -1, 4105, null, 'UNKOWN', ${TRUE}, ${TRUE}, 'Script completed'
- );
diff --git a/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.PostgreSQLDialect/property-unique-ctx-value.sql b/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.PostgreSQLDialect/property-unique-ctx-value.sql
deleted file mode 100755
index 60c9562c36..0000000000
--- a/config/alfresco/dbscripts/upgrade/3.4/org.hibernate.dialect.PostgreSQLDialect/property-unique-ctx-value.sql
+++ /dev/null
@@ -1,28 +0,0 @@
---
--- Title: Upgrade to V3.4 - Add alf_prop_unique_ctx.prop1_id column
--- Database: PostgreSQL
--- Since: V3.4 schema 4105
--- Author: Derek Hulley
---
--- Please contact support@alfresco.com if you need assistance with the upgrade.
---
-
--- Optional if upgrading from before 3.2.x
-
-ALTER TABLE alf_prop_unique_ctx
- ADD COLUMN prop1_id INT8,
- ADD CONSTRAINT fk_alf_propuctx_p1 FOREIGN KEY (prop1_id) REFERENCES alf_prop_root (id)
-; --(optional)
-
-
---
--- Record script finish
---
-DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.4-property-unique-ctx-value';
-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.4-property-unique-ctx-value', 'Manually executed script upgrade V3.4',
- 0, 4104, -1, 4105, null, 'UNKOWN', ${TRUE}, ${TRUE}, 'Script completed'
- );
diff --git a/config/alfresco/messages/patch-service.properties b/config/alfresco/messages/patch-service.properties
index 74228c6763..cb27296ee5 100644
--- a/config/alfresco/messages/patch-service.properties
+++ b/config/alfresco/messages/patch-service.properties
@@ -196,9 +196,6 @@ patch.thumbnailsAssocQName.description=Update the 'cm:thumbnails' association QN
patch.convertContentUrls.description=Converts pre-3.2 content URLs to use the alf_content_data table. The conversion work can also be done on a schedule; please contact Alfresco Support for further details.
patch.fixAuthoritiesCrcValues.description=Fixes authority CRC32 values to match UTF-8 encoding.
-patch.fixAuthoritiesCrcValues.result=Fixed CRC32 values for UTF-8 encoding for {0} authorities. See file {1} for details.
-patch.fixAuthoritiesCrcValues.fixed=Updated CRC32 values for authority ''{0}''.
-patch.fixAuthoritiesCrcValues.unableToChange=Failed to update the CRC32 value for authority: \n Authority: {0} \n Error: {1}
patch.updateMimetypes1.description=Fix mimetypes for Excel and Powerpoint.
patch.updateMimetypes2.description=Fix mimetypes for Excel and Powerpoint.
@@ -209,19 +206,16 @@ patch.updateMimetypesSVG.description=Fix mimetype for SVG Image
patch.updateMimetypesVISIO.description=Fix mimetype for Microsoft Visio
patch.updateMimetypesSVG.description=Fix mimetype for Scalable Vector Graphics Image
-patch.redeployJbpmAdhocWorkflow.description=Redeploy JBPM adhoc workflow
-patch.redeployJbpmAdhocWorkflow.result=JBPM adhoc workflow redeployed
-
patch.db-V3.2-AddFKIndexes.description=Fixes ALF-3189: Added missing FK indexes. Note: The script is empty for MySQL.
patch.migrateAttrTenants.description=Migrate old Tenant attributes
-patch.migrateAttrTenants.result=Processed {0} attributes
patch.migrateAttrPropBackedBeans.description=Migrate old Property-Backed Bean component attributes
-patch.migrateAttrPropBackedBeans.result=Processed {0} attributes ({1} properties)
patch.migrateAttrChainingURS.description=Migrate old Chaining User Registry Synchronizer attributes
-patch.migrateAttrChainingURS.result=Processed {0} attributes
+
+patch.redeployJbpmAdhocWorkflow.description=Redeploy JBPM adhoc workflow
+patch.redeployJbpmAdhocWorkflow.result=JBPM adhoc workflow redeployed
patch.migrateAttrDropOldTables.description=Drops old alf_*attribute* tables and sequence
patch.migrateAttrDropOldTables.result=Drop tables alf_attributes, alf_global_attributes, alf_list_attribute_entries, alf_map_attribute_entries and sequence alf_attributes_seq
@@ -233,8 +227,6 @@ patch.transfer.targetrule.description=Creates the transfer target rule for the d
patch.actions.scheduledfolder.description=Creates the scheduled actions folder in the Data Dictionary.
patch.publishing.root.description=Creates the publishing root folder in the Data Dictionary
-patch.removingLinkValidationMetadata.description=Fixes ALF-5185: Removes all Link Validation reports from schema
-
patch.varcharFieldSizesQuadrupleIncreasing.description=ALF-4300: Increasing 'VARCHAR' field sizes quadruply for DB2 dialect
patch.mtFixAdminExistingTenants.description=Fix bootstrapped creator/modifier
diff --git a/config/alfresco/patch/patch-services-context.xml b/config/alfresco/patch/patch-services-context.xml
index e1a96e783f..70d1351c1b 100644
--- a/config/alfresco/patch/patch-services-context.xml
+++ b/config/alfresco/patch/patch-services-context.xml
@@ -1127,74 +1127,36 @@
4.2.x
-
-
+
patch.db-V3.4-authority-unique-idx
patch.schemaUpgradeScript.description
0
4099
4100
-
- classpath:alfresco/dbscripts/upgrade/3.4/${db.script.dialect}/authority-unique-idx.sql
+
+ 4.2.x
-
-
+
patch.fixAuthoritiesCrcValues
patch.fixAuthoritiesCrcValues.description
0
4100
4101
- false
-
-
-
-
-
-
-
-
+
+ 4.2.x
-
-
+
patch.updateMimetypes1
patch.updateMimetypes1.description
0
4101
4102
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
+
+ 4.2.x
-
patch.db-V3.3-modify-index-permission_id
patch.schemaUpgradeScript.description
@@ -1225,55 +1187,46 @@
4.2.x
-
-
+
patch.db-V3.4-property-unique-ctx-value
patch.schemaUpgradeScript.description
0
4104
4105
-
- classpath:alfresco/dbscripts/upgrade/3.4/${db.script.dialect}/property-unique-ctx-value.sql
+
+ 4.2.x
-
+
patch.db-V3.4-property-unique-ctx-idx
patch.schemaUpgradeScript.description
0
4104
4105
-
- classpath:alfresco/dbscripts/upgrade/3.4/${db.script.dialect}/property-unique-ctx-idx.sql
-
-
-
-
-
+
+ 4.2.x
-
-
+
patch.db-V3.4-child-assoc-indexes
patch.schemaUpgradeScript.description
0
4104
4105
-
- classpath:alfresco/dbscripts/upgrade/3.4/${db.script.dialect}/child-assoc-indexes.sql
+
+ 4.2.x
-
-