<?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 to safely change property type? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-safely-change-property-type/m-p/250641#M203771</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;some time ago I have similar issue and I solved it in rather no very safe way but it seems to work normally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution is that you should change the property to double in the model, before you run alfresco you must change values in database (you should write sql statements to copy values from float column to double column and change it type in database in alf_properties table). You should also set index.recovery.node to FULL so all lucene indicies are rebuild.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that you can loose some precision any way, since float can't hold some values which double can.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway you can also try to write some action in java which reads Float from properties and then writes Double to property back, but I didn't check this solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;smicyk&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Nov 2010 19:13:45 GMT</pubDate>
    <dc:creator>smicyk</dc:creator>
    <dc:date>2010-11-06T19:13:45Z</dc:date>
    <item>
      <title>How to safely change property type?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-safely-change-property-type/m-p/250640#M203770</link>
      <description>Hi everyone!I have a problem in my Alfresco customization. I created my custom content model and i set a property type to float instead of double. Now Alfresco rounds all the values stored in it. For example i have the value 12521.56 and he shows me 12521.6.So the solution would be to change the dat</description>
      <pubDate>Sat, 06 Nov 2010 11:25:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-safely-change-property-type/m-p/250640#M203770</guid>
      <dc:creator>irinuca13</dc:creator>
      <dc:date>2010-11-06T11:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to safely change property type?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-safely-change-property-type/m-p/250641#M203771</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;some time ago I have similar issue and I solved it in rather no very safe way but it seems to work normally.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The solution is that you should change the property to double in the model, before you run alfresco you must change values in database (you should write sql statements to copy values from float column to double column and change it type in database in alf_properties table). You should also set index.recovery.node to FULL so all lucene indicies are rebuild.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that you can loose some precision any way, since float can't hold some values which double can.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway you can also try to write some action in java which reads Float from properties and then writes Double to property back, but I didn't check this solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;smicyk&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Nov 2010 19:13:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-safely-change-property-type/m-p/250641#M203771</guid>
      <dc:creator>smicyk</dc:creator>
      <dc:date>2010-11-06T19:13:45Z</dc:date>
    </item>
  </channel>
</rss>

