import Intro from '/docs/snippets/breaking-change-page-intro.md'
import MigrationIntro from '/docs/snippets/breaking-change-page-migration-intro.md'
Content types with Draft & Publish disabled always have the publishedAt value set to a date#
In Strapi 5, content-types with Draft & Publish disabled always have the publishedAt value set to a date.
Breaking change description#
In Strapi v4
In Strapi v4, a content-type with Draft & Publish disabled does not even have a publishedAt attribute.
In Strapi 5
In Strapi 5, the publishedAt attribute always exist even if Draft & Publish is disabled for a content-types.
Migration#
Notes#
- If Draft & Publish is enabled,
publishedAtis:nullfor drafts versions of documents- and set to the publication date for published versions of documents.
- If Draft & Publish is disabled,
publishedAtis set to the latest creation or edition date of the document.