Commit Graph
10 Commits
Author SHA1 Message Date
Ben Irvin 446b9ebb19 feat(migration): add declarative fixture spec and pluggable validators
Replace the monolithic validate-migration.js with a thin orchestrator
backed by tests/migration/fixture: spec-driven expectations, registry
profiles, and modular check modules.
2026-05-28 19:09:43 +02:00
Ben IrvinandCursor ed965c0097 fix(migration): extend validation and pin Docker runtime in CI
Add hc-m2m fixture checks to validate-migration.js (counts, draft/publish
pairing, API relation parity for v4-origin runs). Harden morph and nested
component validation. Prefer Docker for compose on GitHub Actions and set
STRAPI_BENCH_RUNTIME on migration_v5 so postgres/mysql/mariadb matrix legs
start containers reliably.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 15:41:09 +02:00
Ben IrvinandCursor 6cdadee71f fix(complex): scope DZ overlap check to sections field and type:id
DB-level verification compared raw component row ids across every
component field on relation-dp, causing false failures when the same
numeric id appeared on different fields (e.g. media-block vs simple-info).
Scope the check to the sections dynamic zone and compare type:id keys.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-22 15:24:48 +02:00
Ben Irvin 79d6998420 ci(migration): matrix MariaDB + fix migrations path filter
Run migration_v5 on sqlite, postgres, mysql, and mariadb; add Compose
mariadb service, db-mariadb tooling, and Strapi mysql2 wiring for
--database mariadb. Extend filters `migrations` to tests/migration and
examples/complex (compose, scripts, config, src, package.json) so harness
changes trigger the job. Document CI vs CLI in tests/migration README;
trim complex README; update v5 .env.example and add db/develop scripts.
2026-05-22 15:00:48 +02:00
Ben Irvin b91772f6cb test(migration): add migration testing framework 2026-05-22 14:59:08 +02:00
Bassel Kanso e6ab4c9217 fix(core): preserve component clone integrity in discard-drafts migration 2026-02-26 13:28:44 +02:00
Ben Irvin 39513fe209 fix: universal polymorphic 2026-02-24 15:45:36 +01:00
Ben Irvin f409776751 fix: polymorph media relations migrations 2026-02-24 15:23:16 +01:00
Bassel KansoandGitHub 21c6eb2324 fix(migrations): speed up discard-drafts with bulk batches (#25293) 2026-02-10 11:34:33 +02:00
Bassel KansoandGitHub 40bf9c0fe0 test: migration testing project (#25151) 2026-01-27 14:50:08 +00:00