Opened 6 days ago
Last modified 5 days ago
#36377 assigned New feature
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: | Accepted | |
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 (4)
comment:1 by , 6 days ago
Description: | modified (diff) |
---|
comment:2 by , 6 days ago
Component: | Uncategorized → Migrations |
---|---|
Easy pickings: | set |
Triage Stage: | Unreviewed → Accepted |
comment:3 by , 5 days ago
Has patch: | set |
---|
comment:4 by , 5 days ago
Owner: | set to |
---|---|
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
That makes sense.