Skip to content

Mark SchemaDiff public properties internal #5758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

morozov
Copy link
Member

@morozov morozov commented Oct 13, 2022

Q A
Type deprecation

This patch continues the API refactoring previously done in #5657 and #5717.

Additionally, it deprecates the functionality of tracking orphaned foreign keys in the schema diff. This functionality was introduced in bf0ef0d without any tests or description of the problem that it was meant to solve. It implements dropping foreign keys referencing the table when the table is dropped. There's no reason why it should be done automatically. Besides enforcing data integrity at the row level, a foreign key enforces it at the table level. If this enforcement is no longer necessary, the constraint should be dropped explicitly.

@morozov morozov marked this pull request as ready for review October 13, 2022 05:21
@morozov morozov requested review from derrabus and greg0ire October 13, 2022 05:21
@morozov morozov added this to the 3.5.0 milestone Oct 13, 2022
@morozov morozov merged commit de5042f into doctrine:3.5.x Oct 15, 2022
@morozov morozov deleted the schema-diff-public-properties-internal branch October 15, 2022 15:26
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 16, 2023
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.

2 participants