Opened 4 months ago
Closed 7 weeks ago
#36377 closed New feature (fixed)
support `hints` for postgres contrib operations
Reported by: | anthony sottile | Owned by: | Anthony Sottile |
---|---|---|---|
Component: | Migrations | Version: | 5.2 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description (last modified by )
since they are ~effectively specialized RunSql
operations it would be nice if they support hints=...
as well. at sentry we utilize this in our database router to properly target sql-like operations during migrations. without hints we don't know what database to apply the migration operation to
something like:
operations = [BtreeGistExtension(hints={'tables': ['sentry_whatever']})]
(and updating the allow_migrate(...)
calls inside CreateExtension
)
Change History (8)
comment:1 by , 4 months ago
Description: | modified (diff) |
---|
comment:2 by , 4 months ago
Component: | Uncategorized → Migrations |
---|---|
Easy pickings: | set |
Triage Stage: | Unreviewed → Accepted |
comment:4 by , 4 months ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:5 by , 4 months ago
Needs documentation: | set |
---|
comment:6 by , 7 weeks ago
Needs documentation: | unset |
---|
updating the "Needs documentation" box as I believe I have addressed the docs updates requested in the PR
comment:7 by , 7 weeks ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
That makes sense.