Skip to content

Commit 488b81e

Browse files
turegjorupclaude
andcommitted
docs: scope migration consolidation in UPGRADE.md and CHANGELOG
Documents the 2.x → 3.0 consolidation operator flow before the actual squash lands: rewrites step 3 to use `doctrine:migrations:rollup` instead of `migrate` for upgraders (orphaned versions would otherwise cause migrate to fail), notes the 2.7.x prerequisite, and keeps the fresh-install path on `migrate` against the single consolidated file. CHANGELOG also flags the deferral of the `template` column drop (icon, resources, description) from 3.0 to 3.1 so the consolidated migration represents end-of-2.7 schema exactly — fresh and upgraded installs stay symmetric for the eventual 3.1 drop. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 456dcd5 commit 488b81e

2 files changed

Lines changed: 33 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
- Consolidated 25 historical 2.x Doctrine migrations into a single schema-dump migration
8+
representing the end-of-2.7 schema. Upgraders must be on the latest 2.7.x with every migration
9+
applied, then run `doctrine:migrations:rollup` instead of `doctrine:migrations:migrate`. Fresh
10+
installs are unaffected and continue to use `migrate`. See `UPGRADE.md` step 3.
11+
- Deferred the `template` column drop (icon, resources, description) from 3.0 to 3.1 so the
12+
consolidated 3.0 migration represents end-of-2.7 schema exactly. The columns sit unused
13+
through 3.0.x and 3.1 drops them uniformly across both fresh and upgraded installs.
714
- Fixed Calendar and Colibo feed configuration urls and added [] result when no locationEndpoint is set.
815
- Fixed baked-in `.env` shipping `APP_ENV=dev` in the API image; rewritten to `prod` at build time so
916
direct reads don't try to bootstrap a dev environment the prod-only dependencies can't satisfy.

UPGRADE.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,36 @@ Rename the following .env variables in `.env.local`:
7373
- From `APP_KEY_VAULT_SOURCE` to `KEY_VAULT_SOURCE`
7474
- From `APP_KEY_VAULT_JSON` to `KEY_VAULT_JSON`
7575

76-
#### 3 - Run doctrine migrate
76+
#### 3 - Consolidate Doctrine migrations
77+
78+
3.0 ships a single consolidated migration that represents the end-of-2.7 schema. The 25 historical
79+
2.x migrations have been removed from the repository.
80+
81+
Because every upgrading database already matches that consolidated schema (via the 25 migrations it
82+
ran while on 2.x), there is nothing for `doctrine:migrations:migrate` to do — and running it would
83+
fail because of the orphaned version entries. Use `doctrine:migrations:rollup` instead, which
84+
truncates the `doctrine_migration_versions` table and inserts a single row marking the consolidated
85+
migration as already executed:
7786

7887
```shell
79-
docker compose exec phpfpm bin/console doctrine:migrations:migrate
88+
# Confirm the database is at the latest 2.7.x state before rolling up.
89+
# All 25 historical versions should appear as "migrated" / "available".
90+
docker compose exec phpfpm bin/console doctrine:migrations:status
91+
92+
# Replace the 25 historical version entries with the single consolidated entry.
93+
# This does not run any SQL — it only rewrites the version-tracking table.
94+
docker compose exec phpfpm bin/console doctrine:migrations:rollup --no-interaction
8095
```
8196

97+
> **Prerequisite:** the database must be on the final 2.7.x release with every 2.x migration
98+
> applied. If `doctrine:migrations:status` (run while still on 2.7.x) reports any pending
99+
> migrations, run `doctrine:migrations:migrate` on 2.7.x first, then upgrade to 3.0 and continue
100+
> here.
101+
102+
Fresh installs (no prior 2.x database) skip the rollup and run
103+
`doctrine:migrations:migrate` instead — it executes the single consolidated migration and brings
104+
the schema up in one step.
105+
82106
#### 4 - Run template list command to see status for installed templates
83107

84108
```shell

0 commit comments

Comments
 (0)