I’m using Contentful migrations, and I’m looking for a way to convert a Long Text field to a Rich Text field.
e.g. from this:
MyModel * title - Short Text * description - Long Text
My Model * title - Short Text * description - Rich Text
I expect the steps to be:
- Create new field,
- Copy the current contents of
- NB: I understand that Long Texts are actually Markdown, but in my case they’re just plain strings, so I’m sure I even need to parse here
However, I’m having trouble figuring out how to do this. There’s a guide about migrating to rich text here, but it’s waaaay more complicated than my case (the post details merging a field consisting of multiple linked entries of different types into a rich text field), and I can’t figure out how to apply the code given there to my use case.
Any assistance would be appreciated.
NB: this is essentially the same question as this post - I even pinched the title - but that post is locked, and has no answers, anyway.