diff --git a/config/alfresco/bootstrap-context.xml b/config/alfresco/bootstrap-context.xml index 7e6715a295..a86376fbbb 100644 --- a/config/alfresco/bootstrap-context.xml +++ b/config/alfresco/bootstrap-context.xml @@ -110,6 +110,7 @@ + diff --git a/config/alfresco/dbscripts/upgrade/3.2/org.hibernate.dialect.Dialect/modify-AVM-mimetype.sql b/config/alfresco/dbscripts/upgrade/3.2/org.hibernate.dialect.Dialect/modify-AVM-mimetype.sql new file mode 100644 index 0000000000..2adba984ac --- /dev/null +++ b/config/alfresco/dbscripts/upgrade/3.2/org.hibernate.dialect.Dialect/modify-AVM-mimetype.sql @@ -0,0 +1,24 @@ +-- +-- Title: Upgrade to V3.2 - modify AVM mimetype +-- Database: Generic +-- Since: V3.2 schema 2017 +-- Author: janv +-- +-- modify AVM mimetype (increase column size) +-- +-- Please contact support@alfresco.com if you need assistance with the upgrade. +-- + +alter table avm_nodes modify mime_type varchar(100); + +-- +-- Record script finish +-- +DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.2-Modify-AVM-mimetype'; +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.2-Modify-AVM-mimetype', 'Manually executed script upgrade V3.2 to modify AVM mimetype', + 0, 2016, -1, 2017, null, 'UNKOWN', 1, 1, 'Script completed' + ); diff --git a/config/alfresco/dbscripts/upgrade/3.2/org.hibernate.dialect.MySQLInnoDBDialect/modify-AVM-mimetype.sql b/config/alfresco/dbscripts/upgrade/3.2/org.hibernate.dialect.MySQLInnoDBDialect/modify-AVM-mimetype.sql new file mode 100644 index 0000000000..e0d1e09640 --- /dev/null +++ b/config/alfresco/dbscripts/upgrade/3.2/org.hibernate.dialect.MySQLInnoDBDialect/modify-AVM-mimetype.sql @@ -0,0 +1,24 @@ +-- +-- Title: Upgrade to V3.2 - modify AVM mimetype +-- Database: MySQL +-- Since: V3.2 schema 2017 +-- Author: janv +-- +-- modify AVM mimetype (increase column size) +-- +-- Please contact support@alfresco.com if you need assistance with the upgrade. +-- + +alter table avm_nodes modify mime_type varchar(100); + +-- +-- Record script finish +-- +DELETE FROM alf_applied_patch WHERE id = 'patch.db-V3.2-Modify-AVM-MimeType'; +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.2-Modify-AVM-MimeType', 'Manually executed script upgrade V3.2 to modify AVM mimetype', + 0, 2016, -1, 2017, null, 'UNKOWN', 1, 1, 'Script completed' + ); diff --git a/config/alfresco/patch/patch-services-context.xml b/config/alfresco/patch/patch-services-context.xml index 57390e412e..81b76641d5 100644 --- a/config/alfresco/patch/patch-services-context.xml +++ b/config/alfresco/patch/patch-services-context.xml @@ -1922,4 +1922,15 @@ + + patch.db-V3.2-Modify-AVM-MimeType + patch.schemaUpgradeScript.description + 0 + 2016 + 2017 + + classpath:alfresco/dbscripts/upgrade/3.2/${db.script.dialect}/modify-AVM-mimetype.sql + + + diff --git a/config/alfresco/version.properties b/config/alfresco/version.properties index f26cf5556e..5379781021 100644 --- a/config/alfresco/version.properties +++ b/config/alfresco/version.properties @@ -19,4 +19,4 @@ version.build=@build-number@ # Schema number -version.schema=2016 +version.schema=2017 diff --git a/source/java/org/alfresco/repo/avm/hibernate/AVM.hbm.xml b/source/java/org/alfresco/repo/avm/hibernate/AVM.hbm.xml index 34456b4ad6..c17357d428 100644 --- a/source/java/org/alfresco/repo/avm/hibernate/AVM.hbm.xml +++ b/source/java/org/alfresco/repo/avm/hibernate/AVM.hbm.xml @@ -115,7 +115,7 @@ - +