Skip to content
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

Do not use ColumnDiff::$changedProperties in OraclePlatform::getAlterTableSQL() #5623

Merged
merged 2 commits into from
Aug 28, 2022

Conversation

morozov
Copy link
Member

@morozov morozov commented Aug 28, 2022

Instead of counting changed properties, the code should check whether the resulting column declaration has changed.

This renders the test being removed invalid because it uses the diff that declares changed properties but the from and the to columns are the same. The original test implementation introduced in #360 was correct but it was incorrectly updated in #4786. It is not worth fixing the test since there is a functional test that covers the same logic (OracleSchemaManagerTest::testAlterTableColumnNotNull()).

@morozov morozov added this to the 4.0.0 milestone Aug 28, 2022
@morozov morozov marked this pull request as ready for review August 28, 2022 06:52
@morozov morozov requested a review from greg0ire August 28, 2022 06:53
@morozov morozov merged commit ecf5e76 into doctrine:4.0.x Aug 28, 2022
@morozov morozov deleted the oracle-alter-table-cleanup branch August 28, 2022 14:56
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 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