Django

Code

Ticket #7186 (new)

Opened 3 days ago

Last modified 3 days ago

Django creates redundant unique index for OneToOneField on MySQL

Reported by: Peter Melvyn Assigned to: nobody
Component: django.core.mail Version: SVN
Keywords: MySQL redundant unique index Cc:
Triage Stage: Unreviewed Has patch: 0
Needs documentation: 0 Needs tests: 0
Patch needs improvement: 0

Description

I've noticed, that Django r7411 still generates reduntandt unique indeces when Unique=True, db_index=True and reopened ticked #3030.

Then I updated to r7519 (current head) and discovered, that reduntant unique index is create for OneToOneField? (MySQL creates inherent foreign key on UNIQUE column declaration)

Attachments

Change History

05/07/08 12:00:30 changed by Sephi

  • needs_better_patch changed.
  • needs_tests changed.
  • needs_docs changed.

I've already filled a bug report for the OneToOneField? problem here : http://code.djangoproject.com/ticket/7170


Add/Change #7186 (Django creates redundant unique index for OneToOneField on MySQL)




Change Properties
Action