mirror of
https://github.com/strapi/strapi.git
synced 2026-06-02 16:27:47 +00:00
* fix(core): preserve createdBy/updatedBy on drafts created by discard-drafts migration Stage 1 of the v4→v5 discard-drafts migration now copies join-column foreign keys when cloning published rows to drafts, so creator metadata is no longer NULL on the new draft rows. Adds a focused migration test and extends the complex example migration validator to catch this regression. Fixes #26460 * fix(core): skip virtual join columns in discard-drafts stage 1 i18n localizations reuses document_id as a virtual join column; copying it alongside the scalar duplicated the column in INSERT…SELECT and broke v4→v5 migration. Dedupe clone columns and apply the same filter in later stages.