-
-
Notifications
You must be signed in to change notification settings - Fork 31k
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
Fixed #27060: Extended inspectdb so indexes are added to Meta.indexes. #12712
Open
drewbrew
wants to merge
16
commits into
django:main
Choose a base branch
from
drewbrew:27060-add-indexes-to-inspectdb
base: main
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
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.
+133
−4
Commits on Apr 28, 2023
-
Add indexes identified in constraints to Meta field in inspection
When inspecting tables, the process creates a constraints dict that identifies indexes. If we have any such indexes, let's add them to `Meta.indexes` using the base `Index` class. At this point, it does not support identifying the index type and substituting in the proper index class, and I don't believe we have the information at this time to select the right class anyway. Ref: https://code.djangoproject.com/ticket/27060
Configuration menu - View commit details
-
Copy full SHA for a57747a - Browse repository at this point
Copy the full SHA a57747aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 12254d4 - Browse repository at this point
Copy the full SHA 12254d4View commit details -
Add support for descending indexes
Also add a comment if the type isn't btree
Configuration menu - View commit details
-
Copy full SHA for 1256fcd - Browse repository at this point
Copy the full SHA 1256fcdView commit details -
Configuration menu - View commit details
-
Copy full SHA for ebbc981 - Browse repository at this point
Copy the full SHA ebbc981View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc63908 - Browse repository at this point
Copy the full SHA bc63908View commit details -
Skip single-column rtree indexes
Let's assume they're default spatial indexes
Configuration menu - View commit details
-
Copy full SHA for 1834d5e - Browse repository at this point
Copy the full SHA 1834d5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 88fe9c6 - Browse repository at this point
Copy the full SHA 88fe9c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 682df00 - Browse repository at this point
Copy the full SHA 682df00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ec84ac - Browse repository at this point
Copy the full SHA 1ec84acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 453e8fa - Browse repository at this point
Copy the full SHA 453e8faView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb29725 - Browse repository at this point
Copy the full SHA fb29725View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2ac2cd - Browse repository at this point
Copy the full SHA f2ac2cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 95c36bc - Browse repository at this point
Copy the full SHA 95c36bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 589b857 - Browse repository at this point
Copy the full SHA 589b857View commit details -
Configuration menu - View commit details
-
Copy full SHA for bad8eee - Browse repository at this point
Copy the full SHA bad8eeeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6976ecd - Browse repository at this point
Copy the full SHA 6976ecdView commit details
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.