Migrating existing model content to 5.1 custom model
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2016 07:44 AM
I created a custom model for my 5.0 installation by deploying a WAR file. It works fine and it allowed me to add a few custom aspects with the required properties. However, in order to limit future maintenance, I would like to recreate my model in the 5.1 Model Manager.
What would be the easiest way to migrate 1:1 the content of the properties in the Aspects of my custom model into a 5.1 Model Manager created custom model (identical to mine)?
Thanks for the support!
Maurizio
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2016 03:54 PM
Have you tried it already?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2016 03:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-16-2016 05:02 AM
Well there are two ways of going about this.
1. You can drop the current model into 5.1 (I have done it, and the models work); and the hook the new instance 5.1 into the old database. Alfresco has a clever way of updating its schemas without corrupting the data inside. In that way you will have all your data with the models deployed.
2. You can drop/re-create the model for 5.1 and then use CMIS to migrate the content with properties to 5.1.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-28-2016 05:11 AM
recreating the model in the model manager by dropping the jar works indeed! Alfresco il really cool.
Solved! Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-29-2018 12:48 PM
Hi.
I have the same issue. I have a 5.1 repo with over 200,000 docs that use a custom content model I have previously deployed in an amp file (model defined in XML, etc.).
I have defined the exact same model in a 5.2 dev instance of Alfresco using the model manager and have exported the model.
If I remove the model definition from the amp file, redeploy the amp and restart Alfresco. Then if I try to import the model using Model Manager I get an error saying it cannot be imported becaus ethe model already exists.
Could you give me any more detail on what you did to migrate? What did you delete (you refer to dropping the jar)?
Many thanks
