As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<bean id="patch.db-V4.2-add-new-table" class="org.alfresco.repo.admin.patch.impl.SchemaUpgradeScriptPatch" parent="basePatch"> <property name="id"><value>patch.db-V4.2-add-new-table</value></property> <property name="description"><value>patch.db-V4.2-add-new-table.description</value></property> <property name="fixesFromSchema"><value>0</value></property> <property name="fixesToSchema"><value>6018</value></property> <property name="targetSchema"><value>6019</value></property> <property name="scriptUrl"> <value>classpath:alfresco/extension/dbscripts/upgrade/4.2/${db.script.dialect}add-new-table.sql</value> </property> </bean> <bean id="schema.upgrade.sampleextension" class="org.alfresco.repo.domain.schema.SchemaBootstrapRegistration" init-method="register"> <property name="schemaBootstrap" ref="schemaBootstrap" /> <property name="postUpdateScriptPatches"> <list> <ref bean="patch.db-V4.2-add-new-table" /> </list> </property> </bean>
17:37:23,022 ERROR [org.springframework.web.context.ContextLoader] [localhost-startStop-1] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patch.db-V4.2-add-new-table' defined in class path resource [alfresco/module/repoAmp/context/service-context.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'targetSchema' threw exception; nested exception is java.lang.IllegalArgumentException: 'targetSchema' must be greater than 'fixesToSchema'