Repository navigation
Merge 3.10.x up into 4.0.x - #1624
Merged
Merged
Conversation
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.
Address latest PHPStan findings
Merge 3.9.x up into 3.10.x
…-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.
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>
Fix typos in documentation
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>
Adapt test suite to DBAL 4.6
Merge 3.9.x up into 3.10.x
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.
…sertions Drop assertions that never run
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
Use the schema editor API in tests
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
The mutable version is deprecated.
…-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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.