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 drop PK constraint when dropping auto-increment on Oracle #6863

Merged

Conversation

morozov
Copy link
Member

@morozov morozov commented Mar 19, 2025

As of #6817, DBAL doesn't add a primary key constraint to the table when declaring a column as auto-incremented on Oracle. It shouldn't drop the PK when dropping the auto-increment either.

Technically, this is not a bug because DBAL doesn't support adding auto-increment to or dropping it from an existing column. This code is invoked only when the table is dropped, and there's no harm in dropping the PK in this case. It's just unnecessary.

@morozov morozov added this to the 5.0.0 milestone Mar 19, 2025
@morozov morozov marked this pull request as ready for review March 19, 2025 16:23
@morozov morozov requested a review from greg0ire March 19, 2025 16:24
@morozov morozov merged commit 7d902b3 into doctrine:5.0.x Mar 19, 2025
64 checks passed
@morozov morozov deleted the oracle-do-not-drop-pk-with-auto-increment branch March 19, 2025 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants