<?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: Data Dictionary, clean repository questions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/data-dictionary-clean-repository-questions/m-p/272857#M225987</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jeff, I appreciate your response.&amp;nbsp; The first case isn't too big a deal as I'm still determining the proper data model in an exploratory ALfresco instance.&amp;nbsp; Being able to reset and drop in my previous versions is no big deal as I have no data I want to keep.&amp;nbsp; I do wonder what would happen should this occur in a production environment.&amp;nbsp; Full restore from backup I suppose.&amp;nbsp; I will certainly be more careful in the future with dynamic model changes and have warned others in my group accordingly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as dropping and recreating the database, I assume db_remove.sql and then db_setup.sql are what's used, but I confess I haven't tried them yet.&amp;nbsp; Your scripts you mention sound useful, I'll probably create similar ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chuck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2012 16:19:47 GMT</pubDate>
    <dc:creator>zulu</dc:creator>
    <dc:date>2012-05-18T16:19:47Z</dc:date>
    <item>
      <title>Data Dictionary, clean repository questions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/data-dictionary-clean-repository-questions/m-p/272855#M225985</link>
      <description>Hi everyone,I've been monkeying around a lot lately with custom data models, and I've found it's generally pretty clear how it all hangs together.&amp;nbsp; I started by a static model extension and moved on to using the Model Designer addon from BeCPG which seems targeted at dynamic model changes.&amp;nbsp; That des</description>
      <pubDate>Tue, 15 May 2012 20:28:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/data-dictionary-clean-repository-questions/m-p/272855#M225985</guid>
      <dc:creator>zulu</dc:creator>
      <dc:date>2012-05-15T20:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary, clean repository questions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/data-dictionary-clean-repository-questions/m-p/272856#M225986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, Chuck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So it seems clear I need to either update or remove the second model that I added. How do I go about doing this when Alfresco won't start though?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;This is precisely why dynamically loaded models make me nervous. It seems easy to create a situation, like you've done, where you are in a catch-22 of having screwed up your model, but the screwed up model won't let the repository start up such that you can correct the problem. Unfortunately, all I have is sympathy without a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;With all the model testing I've done, I've added data that uses things I no longer want in my model. How are subtractive model changes handled in Alfresco? Do you have to remove any content that uses the removed elements? Is there a clever way to do that? In a previous DM system I'd go hack the database but I really don't want to do that if I can avoid it.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Subtractive model changes are tricky. In short, yes, you have to remove content that uses those elements. Especially if you have defined mandatory aspects and you are removing those aspects from your model–you'll want to remove those aspects from the objects before you make your model change. You asked for a clever way to make those changes. I find server-side JavaScript to be handy for this. You can go old school and run it using "Execute Script" but my preferred method these days is to use the &lt;/SPAN&gt;&lt;A href="http://code.google.com/p/share-extras/wiki/JavascriptConsole" rel="nofollow noopener noreferrer"&gt;JavaScript Console&lt;/A&gt;&lt;SPAN&gt; from Share Extras.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Any advice on where to look or how to basically reset my Alfresco instance at a data level?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;The key is to always reset both your database and your data directory. I have a set of shell scripts I use to stay productive. They are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - alf-clear-data.sh: Drops the database, creates a new database, deletes everything under my alf_data directory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - alf-switch.sh: Switches between Alfresco versions by un-linking/re-linking the appropriate alfresco and share WARs into Tomcat, clearing out Tomcat temp/work, and bringing in the appropriate extensions directory into $TOMCAT_HOME/shared/classes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - alf-clean-webapps.sh: Blows away and re-expands the alfresco and share WARs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 14:01:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/data-dictionary-clean-repository-questions/m-p/272856#M225986</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-05-17T14:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data Dictionary, clean repository questions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/data-dictionary-clean-repository-questions/m-p/272857#M225987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jeff, I appreciate your response.&amp;nbsp; The first case isn't too big a deal as I'm still determining the proper data model in an exploratory ALfresco instance.&amp;nbsp; Being able to reset and drop in my previous versions is no big deal as I have no data I want to keep.&amp;nbsp; I do wonder what would happen should this occur in a production environment.&amp;nbsp; Full restore from backup I suppose.&amp;nbsp; I will certainly be more careful in the future with dynamic model changes and have warned others in my group accordingly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as dropping and recreating the database, I assume db_remove.sql and then db_setup.sql are what's used, but I confess I haven't tried them yet.&amp;nbsp; Your scripts you mention sound useful, I'll probably create similar ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chuck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 16:19:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/data-dictionary-clean-repository-questions/m-p/272857#M225987</guid>
      <dc:creator>zulu</dc:creator>
      <dc:date>2012-05-18T16:19:47Z</dc:date>
    </item>
  </channel>
</rss>

