support `hints` for postgres contrib operations
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)
Description: |
modified (diff)
|
Component: |
Uncategorized → Migrations
|
Easy pickings: |
set
|
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
set to Anthony Sottile
|
Status: |
new → assigned
|
Needs documentation: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
That makes sense.