-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Remove support for primary indexes #6870
Open
morozov
wants to merge
10
commits into
doctrine:5.0.x
Choose a base branch
from
morozov:remove-primary-index
base: 5.0.x
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains 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
e45f2b4
to
bf5bb05
Compare
ad9e28e
to
50fef26
Compare
The SQLServerPlatformTest::testCreateNonClusteredPrimaryKeyInTable() failure is expected here. It happens because the test mutates the primary index after adding it to the table, but that is not reflected in the primary key constraint derived from that index at the time when the index was added to the table. Tracking mutations in the index might significantly complicate the forward compatibility code and so far is considered not worth it.
50fef26
to
9f310c0
Compare
This scenario is covered by AlterTableTest::testSwitchPrimaryKeyOrder()
9f310c0
to
c6ea5b1
Compare
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.
The affected features were deprecated in #6867. See the upgrade notes for details on the end-user impact.
Improvements
As a side effect, this change provides the following:
Technical details
true
as the$isPrimary
argument of theIndex
constructor but does not remove the parameter itself. Removing the parameter would require modifying code that instantiates non-PK indexes as well. Once we introduceIndexEditor
, we will mark the constructor as@internal
and then remove the parameter.Closes #807
Fixes #2294
Closes #3890