Changes between Initial Version and Version 4 of Ticket #28339
- Timestamp:
- Jun 25, 2017, 9:14:16 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28339
- Property Type Uncategorized → Bug
- Property Summary Setting db_index=False on a ForeignKey doesn't actually remove the index → Setting db_index=False on a field doesn't actually remove the index
-
Ticket #28339 – Description
initial v4 1 1. Make a `ForeignKey`. Don't specify a value for `db_index` (django sets it to `True`by default)2 2. Make a migration for the foreignkey. This creates an index:1 1. Make a field with `db_index=True` (for `ForeignKey`, django sets this by default) 2 2. Make a migration. This creates an index: 3 3 4 4 {{{ … … 19 19 }}} 20 20 21 One note: This is with postgres settings. I'm not sure if it's db-specific 21 22 One note: This is with postgres settings. I'm not sure if it's db-specific.