Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you enable "Domain Access", "Domain Content" or "Domain Source" with already existing content types, and you delete all content type definitions, all created domain fields will be deleted.
So you are obliged to uninstall and install modules again to recreate fields.
Field must be "locked" to avoid this kind of situations.
Another point which is confusing, fields automatically created with "Domain" shouldn't be prefixed with "field_" by only with "domain_".
It highlight that those fields are officially related to Domain and not created manually by a site builder.
Comments
Comment #2
agentrickardCan you point to some documentation that suggests this is necessary?
It's a pretty major change at this point, and while we're in Alpha, we can change field names, but I fear it will be a bigger headache than leaving the code as is.
I would also appreciate you filing this issues in GitHub instead of d.o.
Comment #3
agentrickardWhen you recreate content types, the fields should be added automatically (though there was a bug in alpha7).
See domain_access_node_type_insert().
Comment #4
Sebastien M. CreditAttribution: Sebastien M. as a volunteer commentedI agree with about auto-adding fields for new content type. But if you delete all content types then fieldbase will be deleted and then no way re-add them.
Comment #5
agentrickardIf you re-add the content type, the field would get recreated, wouldn't it?
Comment #6
agentrickardStill waiting for links to the proper documentation that supports this request.
Comment #7
agentrickard