Skip to content

Rework code for working with extended properties#6798

Merged
morozov merged 2 commits intodoctrine:5.0.xfrom
morozov:rework-internal-platform-methods
Feb 18, 2025
Merged

Rework code for working with extended properties#6798
morozov merged 2 commits intodoctrine:5.0.xfrom
morozov:rework-internal-platform-methods

Conversation

@morozov
Copy link
Member

@morozov morozov commented Feb 18, 2025

This PR refactors the code that invokes the stored procedures that work with SQL Server extended properties. It removes SQLServerPlatform#getAddExtendedPropertySQL() and other similar methods in favor of using SQLServerPlatform#getExecSQL() and building the procedure parameters individually for each call.

It also generalizes the logic of deriving the SCHEMA and TABLE properties from the table name. We will be able to modify it in a single place once the table name becomes represented with OptionallyQualifiedName instead of string.

Additionally, it marks all methods declared as internal in #6788 as private.

@morozov morozov added this to the 5.0.0 milestone Feb 18, 2025
@morozov morozov marked this pull request as ready for review February 18, 2025 01:14
@morozov morozov requested a review from greg0ire February 18, 2025 01:14
@morozov morozov merged commit b0f4809 into doctrine:5.0.x Feb 18, 2025
63 checks passed
@morozov morozov deleted the rework-internal-platform-methods branch February 18, 2025 23:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants