Files
Ben IrvinandGitHub 97f5cde810 fix(core): preserve createdBy/updatedBy on drafts created by discard-drafts migration (#26461)
* 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.
2026-05-28 12:41:22 +02:00
..