Gottwik / Enduro

Minimalistic, lean & mean, node.js cms
http://www.endurojs.com/
MIT License
690 stars 120 forks source link

Managing changes to existing data when changing structure #312

Open vonba opened 5 years ago

vonba commented 5 years ago

Hi there - I'm currently exploring the possibilities of Enduro to see if I can make it work for my typical scenarios.

One hurdle I've come up against has to do with maintaining integrity of existing content files when adding new fields or changing the data structure.

Let's say I have a folder with 250 blog posts which all contain a single image. I want to change all of them to have a gallery of images instead of a single image. This means I need to replace all the single image fields with lists of images. How should I manage this change without manually editing every single content file? Have I missed any existing mechanism to handle this scenario?

Cheers!