﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15697	sqlindexes doesn't output index on manytomany tables although syncdb creates it	Markus Bertheau	Claude Paroz	"Django 1.2.5, Ubuntu 10.10.

With these simple models:

{{{
class A(models.Model):
    pass

class B(models.Model):
    a = models.ManyToManyField(A)
}}}

`./manage.py sqlindexes myapp` doesn't output the following `CREATE INDEX` statement, but `./manage.py syncdb` does create them:

{{{
CREATE INDEX `myapp_b_a_3797486b` ON `myapp_b_a` (`b_id`);
CREATE INDEX `myapp_b_a_776cf5a8` ON `myapp_b_a` (`a_id`);
}}}

Shouldn’t the output of `./manage.py sqlindexes` correspond to what `./manage.py syncdb` does?"	Bug	closed	Core (Management commands)	dev	Normal	fixed			Accepted	1	0	0	0	1	0
