Edit field storages to have persist_with_no_fields set to true
Related: documentation#6
Field storages have a property persist_with_no_fields
which defaults to false
.
We should set that manually to true
to ensure the field storages aren't deleted.
Sample use case:
- Site admin installs
drutopia_core
, which includesfield_body_paragraph
field storage. - Site admin installs
drutopia_action
, which includes afield_body_paragraph
field, then deletes theaction
content type. This triggers deletion of the field_body_paragraphfield _and_ (if no other field is using it) the
field_body_paragraph` field storage. - Later, site admin tries to install a feature that includes a field that uses
field_body_paragraph
. Installation fails because the required field storage is missing.