Skip to content

Commit 5a4735e

Browse files
turegjorupclaude
andcommitted
feat: consolidate 25 historical 2.x migrations into single end-of-2.7 schema
Generated via `doctrine:migrations:diff --formatted` against an empty test DB with 25 latest-2.x migrations applied. The diff command (rather than `dump-schema`) is used because dump-schema in doctrine/migrations 3.7 omits foreign key constraints from the generated migration; diff produces a complete schema including all 96 FK clauses. The `LegacyTemplateColumnsSchemaListener` was active during generation, so the consolidated migration creates `template.icon`, `template.resources`, and `template.description` even though the 3.0 entity no longer maps them. This keeps fresh installs and 2.x → 3.0 upgraders symmetric — both end up with the columns — so the deferred drop migration in 3.1 runs uniformly. Also removes the previously 3.0-only `Version20250815092648` (template column drop), which is deferred to 3.1 together with the listener. Verified end-to-end: - Fresh install: drop DB → migrate → schema:validate exits 0 - Upgrade from 2.7: 25 latest-2.x applied → swap files → rollup → status shows 1 executed / 1 available / 0 unavailable; schema:validate exits 0 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f3a9806 commit 5a4735e

27 files changed

Lines changed: 919 additions & 1736 deletions

migrations/Version20220309093909.php

Lines changed: 0 additions & 151 deletions
This file was deleted.

migrations/Version20220311112355.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

migrations/Version20220311120935.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

migrations/Version20220312224517.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

migrations/Version20220314103522.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

migrations/Version20220315133038.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

migrations/Version20220405093535.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

migrations/Version20220427060919.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

migrations/Version20220510124916.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

migrations/Version20220706144147.php

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)