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

Sebastien @Actualys created an issue. See original summary.

agentrickard’s picture

Status: Active » Postponed (maintainer needs more info)

Can 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.

agentrickard’s picture

When you recreate content types, the fields should be added automatically (though there was a bug in alpha7).

See domain_access_node_type_insert().

Sebastien M.’s picture

I 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.

agentrickard’s picture

If you re-add the content type, the field would get recreated, wouldn't it?

agentrickard’s picture

Still waiting for links to the proper documentation that supports this request.

agentrickard’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)