How tu upgrade existing contents after we add a part to its meta content type

Topics: Administration, Core, Customizing Orchard, Troubleshooting, Writing modules
Jun 18, 2013 at 4:45 PM
There is certainly an easy way to do this ?

here I discovered I missed the point concerning IdentityPart which is mandatory to import/export elements involved in relations.

How to upgrade the sites already running ?

If there is no way I consider this as a bug.
Developer
Jun 18, 2013 at 9:47 PM
You need to go through your content items and republish those.

Orchard inserts missing part records automatically when an item is fetched through content manager. Those records are all empty at first and after you save/publish an item they are filled with proper data.
Jun 19, 2013 at 7:49 AM
Edited Jun 19, 2013 at 9:06 PM
I am glad to have only 3 currencies, 6 PriceLists, 30 products, which produces 3+6+3 x 6 x 30 items to update !!!! What if I have imported 300 products from CRM....
Do you know a way to update automatically all these items in the migration class where i will add the parts ?
Shouldn't this be automated as soon as you add a part to a content item ?
Coordinator
Jun 20, 2013 at 2:03 AM
Write code to do it, from a migration step for example.