Hide Forgot
Date of First Response: 2009-03-06 09:51:40 project_key: SOA The jbpm-service.xml file contains commands to create or update the database <mbean code="org.jboss.internal.soa.esb.dependencies.DatabaseInitializer" name="jboss.esb:service=JBPMDatabaseInitializer"> <attribute name="Datasource">java:/JbpmDS</attribute> <attribute name="ExistsSql">select * from JBPM_ID_USER</attribute> <attribute name="SqlFiles"> jbpm-sql/jbpm.jpdl.hsqldb.sql </attribute> <depends>jboss.jca:service=DataSourceBinding,name=JbpmDS</depends> <attribute name="UseEOL">true</attribute> </mbean> <mbean code="org.jboss.internal.soa.esb.dependencies.DatabaseInitializer" name="jboss.esb:service=JBPMDatabaseUpgrader"> <attribute name="Datasource">java:/JbpmDS</attribute> <attribute name="ExistsSql">select PARENTLOCKMODE_ from JBPM_NODE</attribute> <attribute name="SqlFiles"> jbpm-sql/jbpm.jpdl.hsqldb.update322.sql </attribute> <depends>jboss.esb:service=JBPMDatabaseInitializer</depends> <attribute name="UseEOL">true</attribute> </mbean> but if the scheam tool is udes only the first (create) script is updated <mbean code="org.jboss.internal.soa.esb.dependencies.DatabaseInitializer" name="jboss.esb:service=JBPMDatabaseInitializer"> <attribute name="Datasource">java:/JbpmDS</attribute> <attribute name="ExistsSql">select * from JBPM_ID_USER</attribute> <attribute name="SqlFiles"> jbpm-sql/jbpm.jpdl.postgresql.sql </attribute> <depends>jboss.jca:service=DataSourceBinding,name=JbpmDS</depends> <attribute name="UseEOL">true</attribute> </mbean> <mbean code="org.jboss.internal.soa.esb.dependencies.DatabaseInitializer" name="jboss.esb:service=JBPMDatabaseUpgrader"> <attribute name="Datasource">java:/JbpmDS</attribute> <attribute name="ExistsSql">select PARENTLOCKMODE_ from JBPM_NODE</attribute> <attribute name="SqlFiles"> jbpm-sql/jbpm.jpdl.hsqldb.update322.sql </attribute> <depends>jboss.esb:service=JBPMDatabaseInitializer</depends> <attribute name="UseEOL">true</attribute> </mbean> The update is still using HSQLDB specific script
Fixed with revision 2758 (4.3 branch) of: build-tools/resource/schema/tool/esb/build.xml Commit message: Catch all *.jpdl.hsqldb.* instances when renaming. Fixes JIRA SOA-1209.
Verified in CR4
We no longer need upgrade scripts. See SOA-1176.
Link: Added: This issue is related to SOA-1176
The modification in revision 2758 (4.3 branch) of: build-tools/resource/schema/tool/esb/build.xml is applicable with or without the upgrade scripts, so no further work needs to be done here.
Verified in CR7