Opened 4 months ago
Last modified 7 weeks ago
#36377 closed New feature
support `hints` for postgres contrib operations — at Initial Version
Reported by: | anthony sottile | Owned by: | |
---|---|---|---|
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
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:
`python
operations = [BtreeGistExtension(hints={'tables': sentry_whatever})]
`
(and updating the allow_migrate(...)
calls inside CreateExtension
)
Note:
See TracTickets
for help on using tickets.