Changes between Initial Version and Version 4 of Ticket #28339


Ignore:
Timestamp:
Jun 25, 2017, 9:14:16 PM (7 years ago)
Author:
Craig de Stigter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28339

    • Property Type UncategorizedBug
    • Property Summary Setting db_index=False on a ForeignKey doesn't actually remove the indexSetting 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:
     11. Make a field with `db_index=True` (for `ForeignKey`, django sets this by default)
     22. Make a migration. This creates an index:
    33
    44{{{
     
    1919}}}
    2020
    21 One note: This is with postgres settings. I'm not sure if it's db-specific
     21
     22One note: This is with postgres settings. I'm not sure if it's db-specific.
Back to Top