Skip to content

Merge 3.10.x up into 4.0.x - #1624

Merged
greg0ire merged 95 commits into
doctrine:4.0.xfrom
greg0ire:4.0.x
Nov 24, 2026
Merged

greg0ire merged 95 commits into
doctrine:4.0.xfrom
greg0ire:4.0.x

Conversation

@greg0ire

Copy link
Copy Markdown
Member

No description provided.

dependabot Bot and others added 30 commits November 24, 2025 22:31
Bumps [doctrine/.github/.github/workflows/composer-lint.yml](https://github.com/doctrine/.github) from 12.2.0 to 13.1.0.
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@v12.2.0...13.1.0)

---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/composer-lint.yml
  dependency-version: 13.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [doctrine/.github/.github/workflows/website-schema.yml](https://github.com/doctrine/.github) from 12.2.0 to 13.1.0.
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@v12.2.0...13.1.0)

---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/website-schema.yml
  dependency-version: 13.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [doctrine/.github/.github/workflows/release-on-milestone-closed.yml](https://github.com/doctrine/.github) from 12.2.0 to 13.1.0.
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@v12.2.0...13.1.0)

---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/release-on-milestone-closed.yml
  dependency-version: 13.1.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…ons/doctrine/dot-github/dot-github/workflows/release-on-milestone-closed.yml-13.1.0
…ons/doctrine/dot-github/dot-github/workflows/composer-lint.yml-13.1.0
…ons/doctrine/dot-github/dot-github/workflows/website-schema.yml-13.1.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…ons/actions/checkout-6

Bump actions/checkout from 5 to 6
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 5 to 6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v5...v6)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v6...v7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…ons/actions/upload-artifact-6

Bump actions/upload-artifact from 5 to 6
…ons/actions/download-artifact-7

Bump actions/download-artifact from 6 to 7
Adds a "formatted" config option to set the default behaviour for
formatting generated SQL.
Changes the current command option to be negatable to be able to
override the config option.
This leaves less room for typos.
…-option

Introduce a "formatted" configuration option
In a previous commit, I switched from introspectTable(), which handles
this with a single argument to introspectTableByUnquotedName(), which
handles it with two.
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 7 to 8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](actions/download-artifact@v7...v8)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '8'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](actions/upload-artifact@v6...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
)

Bumps [doctrine/.github/.github/workflows/documentation.yml](https://github.com/doctrine/.github) from 13.1.0 to 14.0.0.
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@13.1.0...14.0.0)

---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/documentation.yml
  dependency-version: 14.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ramsey/composer-install](https://github.com/ramsey/composer-install) from 3 to 4.
- [Release notes](https://github.com/ramsey/composer-install/releases)
- [Commits](ramsey/composer-install@v3...v4)

---
updated-dependencies:
- dependency-name: ramsey/composer-install
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
)

Bumps [doctrine/.github/.github/workflows/composer-lint.yml](https://github.com/doctrine/.github) from 13.1.0 to 14.0.0.
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@13.1.0...14.0.0)

---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/composer-lint.yml
  dependency-version: 14.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…1573)

Bumps [doctrine/.github/.github/workflows/website-schema.yml](https://github.com/doctrine/.github) from 13.1.0 to 14.0.0.
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@13.1.0...14.0.0)

---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/website-schema.yml
  dependency-version: 14.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…e#1572)

Bumps [doctrine/.github/.github/workflows/coding-standards.yml](https://github.com/doctrine/.github) from 13.1.0 to 14.0.0.
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@13.1.0...14.0.0)

---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/coding-standards.yml
  dependency-version: 14.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ml (doctrine#1578)

Bumps [doctrine/.github/.github/workflows/release-on-milestone-closed.yml](https://github.com/doctrine/.github) from 13.1.0 to 14.0.0.
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@13.1.0...14.0.0)

---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/release-on-milestone-closed.yml
  dependency-version: 14.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
We do very small releases, often touching only one workflow, which means
it is unlikely to have several issues when attempting to bump several
references to this repository.
dependabot Bot and others added 29 commits November 12, 2026 22:23
Bumps the doctrine group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [doctrine/.github/.github/workflows/check-target-branch.yml](https://github.com/doctrine/.github) | `16.1.0` | `16.2.0` |
| [doctrine/.github/.github/workflows/coding-standards.yml](https://github.com/doctrine/.github) | `15.1.0` | `16.2.0` |
| [doctrine/.github/.github/workflows/composer-lint.yml](https://github.com/doctrine/.github) | `15.1.0` | `16.2.0` |
| [doctrine/.github/.github/workflows/documentation.yml](https://github.com/doctrine/.github) | `15.1.0` | `16.2.0` |
| [doctrine/.github/.github/workflows/release-on-milestone-closed.yml](https://github.com/doctrine/.github) | `15.1.0` | `16.2.0` |
| [doctrine/.github/.github/workflows/website-schema.yml](https://github.com/doctrine/.github) | `15.1.0` | `16.2.0` |


Updates `doctrine/.github/.github/workflows/check-target-branch.yml` from 16.1.0 to 16.2.0
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@16.1.0...16.2.0)

Updates `doctrine/.github/.github/workflows/coding-standards.yml` from 15.1.0 to 16.2.0
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@15.1.0...16.2.0)

Updates `doctrine/.github/.github/workflows/composer-lint.yml` from 15.1.0 to 16.2.0
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@15.1.0...16.2.0)

Updates `doctrine/.github/.github/workflows/documentation.yml` from 15.1.0 to 16.2.0
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@15.1.0...16.2.0)

Updates `doctrine/.github/.github/workflows/release-on-milestone-closed.yml` from 15.1.0 to 16.2.0
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@15.1.0...16.2.0)

Updates `doctrine/.github/.github/workflows/website-schema.yml` from 15.1.0 to 16.2.0
- [Release notes](https://github.com/doctrine/.github/releases)
- [Commits](doctrine/.github@15.1.0...16.2.0)

---
updated-dependencies:
- dependency-name: doctrine/.github/.github/workflows/check-target-branch.yml
  dependency-version: 16.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: doctrine
- dependency-name: doctrine/.github/.github/workflows/coding-standards.yml
  dependency-version: 16.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: doctrine
- dependency-name: doctrine/.github/.github/workflows/composer-lint.yml
  dependency-version: 16.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: doctrine
- dependency-name: doctrine/.github/.github/workflows/documentation.yml
  dependency-version: 16.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: doctrine
- dependency-name: doctrine/.github/.github/workflows/release-on-milestone-closed.yml
  dependency-version: 16.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: doctrine
- dependency-name: doctrine/.github/.github/workflows/website-schema.yml
  dependency-version: 16.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: doctrine
...

Signed-off-by: dependabot[bot] <support@github.com>
…ons/doctrine-a96f73f10c

Bump the doctrine group with 6 updates
Signed-off-by: Hamid Zare <12127420+hamidzr@users.noreply.github.com>
Every ExecutionResult stays referenced through its MigrationPlan until
the migrate command ends, so keeping the toSchema on it made memory grow
by one full introspected schema per executed migration.

The toSchema is only needed to chain dry runs, so only pass it on as the
next from schema in dry-run mode, and release it from the result once
the migration and its onMigrationsVersionExecuted event are done.

Fixes doctrine#1610

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Five assertions wrap the call that raises the expected exception, so they
are never reached. Call the method directly instead; the mock expectations
in these tests still verify the behaviour.
Register `expectException()` and `expectExceptionMessage*()` right before the
call that throws, instead of at the top of the test, so each expectation is
visibly tied to the statement it applies to.
Resolve parameter types through `Configuration::getTypeProvider()` on DBAL 4.6
and later, which avoids the deprecated `Type` static registry. Keep the static
API in a separate early-return block for older DBAL versions, so that block can
be deleted once DBAL 4.6 is the minimum supported version.

Also gate the metadata storage test on the type provider API, which exists
since DBAL 4.6, instead of `Column::getTypeName()`, which exists since DBAL 4.5.
This keeps the test working with DBAL 4.5, which the `composer.json` constraint
allows.
Register `expectException()` and `expectExceptionMessage*()` right before the
statement that throws, instead of at the top of the test, so each expectation
is visibly tied to the call it applies to. This follows up on doctrine#1607.
…vider

Use the connection type provider when available
The dependency factory is frozen while a console command runs, and was never unfrozen. It could not be reused to run another command in the same process, for instance with another configuration file.

Unfreeze it when the command ends, including when it fails.
…ies-after-command

fix: unfreeze `DependencyFactory` after command
…ions

Move remaining exception expectations next to the throwing calls
…-after-execution

Release toSchema after each executed migration
…table

Switch metadata storage table executed at column to immutable
When a migration fails under --all-or-nothing, executeMigrations() rolls the outer
transaction back and then rethrows. If that rollback itself throws, it replaces the
in-flight exception and the error that actually stopped the migration is lost, with no
previous anywhere in the reported chain.

This is reachable whenever a migration runs a DDL statement and then fails on a later
one: on MySQL the DDL commits implicitly and destroys the savepoint, so the rollback
answers 1305 SAVEPOINT DOCTRINE_2 does not exist. Every frame of what is reported then
describes the savepoint and none describes the migration.

The rollback now runs in a finally block instead of a catch block. PHP attaches the
exception that was in flight to anything thrown from finally, so a failing rollback
carries the migration's own error as its previous exception rather than discarding it,
and no catch-and-rethrow is needed.
…ure-keeps-the-original

Keep the original error when the all-or-nothing rollback fails
…10.x_FoX5IHKy

Merge release 3.9.9 into 3.10.x
…ete-missing

Avoid reporting deletion of a missing migration version
@greg0ire
greg0ire merged commit 33e1f8b into doctrine:4.0.x Nov 24, 2026
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.