Adding mimetypes to notes: few questions

Hi!

I’m back at working on adding mimetypes to notes.

I think the update script should add a text/html mimetype to notes of type “Html code”. What should it do with the others? Add a custom mimetype, like text/x-gramps-styledtext for instance, or leave it empty? check whether there’s any formatting and add text/plain in case none is found or should we keep this for the GEDCOM export?

Would it make sense to add a text/csv mimetype for the DNA Segment Map Gramplet notes?

Totally unrelated: gramps_upgrade_21 keeps some blobs in the metadata table “if someone tries to downgrade the db”. Is there actually any downgrade procedure? Should I also add a downgrade function?