#16220: Add introspection for multicolumn indexes
-------------------------------------+-------------------------------------
     Reporter:  jgelens              |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |                  Version:  1.3
    Component:  Database layer       |               Resolution:
  (models, ORM)                      |             Triage Stage:  Design
     Severity:  Normal               |  decision needed
     Keywords:  dceu2011 inspectdb   |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by jgelens):

 Got this working now:
 {{{
 {
     u'id': {
         'primary_key': False,
         'unique': False,
         'fields': ('id',)
     },
     u'somefield': {
         'primary_key': False,
         'unique': True,
         'fields': ('somefield',)
     },
     u'somefield1': {
         'primary_key': False,
         'unique': False,
         'fields': ('somefield1', 'somefield2')  # a multicolumn index
     },
 }
 }}}

 Btw, I didn't find any usage of get_indexes in south :-/

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16220#comment:11>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to