<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Grails DB migrations in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/grails-db-migrations/m-p/165776#M119437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We picked up the sql files from activiti jar to create the tables, but the team's getting annoyed to do the manual drop-create every time they need reset the base, so I was instructed to configure the auto-migrations in our grails project, but no matter which way I do it, activiti looks for the base before migrations runs, I'd tried to configure migrations to run sql, I'd tried to generate changelog from a healthy cleaned database, but every time I run the project it claims for the ACT_GE_PROPERTY table which runs a SELECT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How an I make activiti runs after Grails DB migrations, or make activiti drop-create the base correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Sep 2013 13:31:41 GMT</pubDate>
    <dc:creator>chewbacca</dc:creator>
    <dc:date>2013-09-19T13:31:41Z</dc:date>
    <item>
      <title>Grails DB migrations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/grails-db-migrations/m-p/165776#M119437</link>
      <description>We picked up the sql files from activiti jar to create the tables, but the team's getting annoyed to do the manual drop-create every time they need reset the base, so I was instructed to configure the auto-migrations in our grails project, but no matter which way I do it, activiti looks for the base</description>
      <pubDate>Thu, 19 Sep 2013 13:31:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/grails-db-migrations/m-p/165776#M119437</guid>
      <dc:creator>chewbacca</dc:creator>
      <dc:date>2013-09-19T13:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Grails DB migrations</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/grails-db-migrations/m-p/165777#M119438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I solved the problem setting deploymentResources to null, then processEngine doesn't require the base, then migrations works, however it requires processEngineConfiguration.autoDeployResources(processEngine) to be called on BootStrap after restore the original deploymentResources!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like that on BootStrap.init:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;grailsApplication.config.activiti.deploymentResources = grailsApplication.config.activiti.deploymentResourcesBackup&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def resolver = new PathMatchingResourcePatternResolver(grailsApplication.mainContext)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def resources = []&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;grailsApplication.config.activiti.deploymentResources.each { deployResource -&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; resources.addAll(resolver.getResources(deployResource))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;processEngineConfiguration.setDeploymentResources(resources.toArray(new Resource[resources.size]))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;processEngineConfiguration.autoDeployResources(processEngine)&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 20:46:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/grails-db-migrations/m-p/165777#M119438</guid>
      <dc:creator>chewbacca</dc:creator>
      <dc:date>2013-09-19T20:46:29Z</dc:date>
    </item>
  </channel>
</rss>

