Some attributes and content types names are reserved
Page summary:In Strapi 5, certain attribute names like
meta,status,entryId, and anything prefixed withstrapiare now reserved and cannot be used. Fields and content types using these names in v4 must be renamed before migrating to Strapi 5.
In Strapi 5, some attributes and content types names are reserved, and all fields or content types in Strapi v4 using these reserved names should be renamed before migrating to Strapi 5 to prevent data loss.
This page is part of the breaking changes database and provides information about the breaking change and additional instructions to migrate from Strapi v4 to Strapi 5.
Breaking change description
In Strapi v4
The following attribute names can be created on a content type:
metastatusentryIdstrapilocale(only for non-localized content types)localizationsstrapi_assigneestrapi_stagethendocument- anything with the prefix
strapi,_strapi, or__strapi
Any model name can be prefixed with strapi.
In Strapi 5
The following attribute names can not be created on a content type:
metastatusentryIdstrapilocalelocalizationsstrapi_assigneestrapi_stagethendocument- anything with the prefix
strapi,_strapi, or__strapi
Model names can not be prefixed with strapi, _strapi, or __strapi.
Migration
Manual procedure
Rename any custom field or content-type that falls under the restriction list before any migration to prevent data loss or other unexpected issues.