#28888: Index added to _meta.indexes with Meta.indexes=[] yields two equal
addIndex() operations.
-------------------------------------+-------------------------------------
     Reporter:  Jan Pieter           |                    Owner:  nobody
  Waagmeester                        |
         Type:  Uncategorized        |                   Status:  new
    Component:  Migrations           |                  Version:  1.11
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Jan Pieter Waagmeester):

 Possibly unrelated, but:

 When an initial migration is added without the index added to
 `cls._meta.indexes`, resulting in the output
 {{{
 ./manage.py makemigrations app
 Migrations for 'app':
   app/migrations/0001_initial.py
     - Create model Blog
 }}}

 No index is added, as expected.

 However, adding the index to `cls._meta.indexes` has no effect: `No
 changes detected in app 'app'`.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28888#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.ca398dddcdabd7991407d35d0e86f16b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to