Deb 1744 librarydescription
SQL migrate:
-
new section for library UPDATE library SET data=json_set(data,'$.sections',json('[{"sectionType": "generic", "data": { "title": "Om biblioteket" }, "blocks": [{ "blockType": "text", "data": {"text": "" }, "order": 0 } ], "order": 0 }]')) ;
-
move description UPDATE library SET data=json_set(data,'.sections[0].blocks[0].data.text',json_extract(data,'.description')) ;
-
delete old descripion UPDATE library SET data=json_remove(data,'$.description') ;