<?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 Re: How can I update data in Activiti DB upgrades? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143100#M100169</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Frauke,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay cool, would it be possible to share your Liquibase files and TypeConverter classes to Activiti?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If we could really have just one Liquibase file to create and update the databases then that would be a very nice step forward.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2013 11:02:44 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2013-01-14T11:02:44Z</dc:date>
    <item>
      <title>How can I update data in Activiti DB upgrades?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143095#M100164</link>
      <description>Hello everybody,something I miss in the Activitiy database upgrades is a data transfer of the old data into the new format, i.e. into the new table ACT_HI_VARINST. Since it is a history table I do not want to lose the data. Have you any suggestions how to migrate the data, for this case and generell</description>
      <pubDate>Mon, 14 Jan 2013 07:54:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143095#M100164</guid>
      <dc:creator>frauke</dc:creator>
      <dc:date>2013-01-14T07:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I update data in Activiti DB upgrades?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143096#M100165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In general there's no need for data transfers. But in the upgrade to Activiti 5.11 we introduced a new table ACT_HI_VARINST. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We discussed to do a data transfer, but we eventually chose the solution where the table is getting filled when new history is written (so also for existing processes).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the reasons we did choose this direction, is that we need to make sure the transfer solution runs on every supported database and this requires quite a bit of effort.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another reason is that if the history tables are filled with a lot of data, you may not want to copy that amount of data to the new table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We also looked at Liquibase and it's a very nice framework indeed. But I don't see the benefit it would bring to remove discrepancies in the scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Because you would still need to write Liquibase XML definitions for every database supported. Do you have any thoughts on this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 09:20:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143096#M100165</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-01-14T09:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can I update data in Activiti DB upgrades?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143097#M100166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ok, your answer concerning ACT_HI_VARINST is comprehensible and ok for us this time. But still we have to be careful in future cases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With Liquibase the common-source idea is the greatest advantage it has. We also support several databases and need &lt;/SPAN&gt;&lt;STRONG&gt;only one&lt;/STRONG&gt;&lt;SPAN&gt; Liquibase XML.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Adding one column to a table for example looks like that - for all databases:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;changeSet id="2 Activiti 5.11 Update ACT_RE_DEPLOYMENT" author="fheyl"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;addColumn tableName="ACT_RE_DEPLOYMENT"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;column name="CATEGORY_" type="NVARCHAR(255)" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/addColumn&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/changeSet&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;Best regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frauke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 09:34:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143097#M100166</guid>
      <dc:creator>frauke</dc:creator>
      <dc:date>2013-01-14T09:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I update data in Activiti DB upgrades?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143098#M100167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Frauke,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That sounds great, but in your example how would that map on DB2? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That definition is CATEGORY_ varchar(255),&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 10:44:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143098#M100167</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-01-14T10:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I update data in Activiti DB upgrades?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143099#M100168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we configure Liquibase so that 'NVARCHAR' always maps to 'varchar' in DB2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Liquibase provides some database specific TypeConverter classes for cases like that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So thats very easy to solve. There might be more difficult cases where you need native SQL for some more complicated conversions. Then - yes - you have to provide different statements for each database. But hopefully that is not needed very often.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frauke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 10:54:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143099#M100168</guid>
      <dc:creator>frauke</dc:creator>
      <dc:date>2013-01-14T10:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can I update data in Activiti DB upgrades?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143100#M100169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Frauke,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay cool, would it be possible to share your Liquibase files and TypeConverter classes to Activiti?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If we could really have just one Liquibase file to create and update the databases then that would be a very nice step forward.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 11:02:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143100#M100169</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-01-14T11:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: How can I update data in Activiti DB upgrades?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143101#M100170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmmm….. ok&amp;nbsp; &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But some of the Activiti upgrades we (unfortunately) merged into one. And the Liquibase mappings are designed for our special needs, there might be other possibilities…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I send them to you? It seems I may not be able to upload them here. I would prefer to send them per mail anyway….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Frauke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 11:12:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143101#M100170</guid>
      <dc:creator>frauke</dc:creator>
      <dc:date>2013-01-14T11:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I update data in Activiti DB upgrades?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143102#M100171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's also mainly to learn from your Liquibase usage, not to do an one-to-one copy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can send the files to tijs.rademakers AT alfresco.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 12:14:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-can-i-update-data-in-activiti-db-upgrades/m-p/143102#M100171</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-01-14T12:14:56Z</dc:date>
    </item>
  </channel>
</rss>

