Add tablespace support to Index class
For now, the django.db.models.indexes.Index class determines a non-default tablespace from its model field if the index is defined on a single field (Field.db_tablespace) or from a model's _meta.db_tablespace for multi-column indexes. Indexes on expressions, however, won't be able to identify which columns they refer to.
The initial API design would be to add db_tablespace or tablespace as an attribute to the Index class and use that if provided, and fallback to the current behavior if not given.
Change History
(7)
| Triage Stage: |
Unreviewed → Accepted
|
| Owner: |
changed from nobody to Mariusz Felisiak
|
| Status: |
new → assigned
|
| Has patch: |
set
|
| Needs tests: |
set
|
| Patch needs improvement: |
set
|
| Patch needs improvement: |
unset
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
In 3297dede: