Re: Why hardcoded unique and db_index?

2009-04-09 Thread MS
read didn't change; in testapp_post only the NAME of the third index has changed. So - the ADD CONSTRAINT commands do create indexes. Besides Mysql manual states it: --- index_name represents a foreign key ID. If given, this is ignored if an index for the foreign key is de

Re: Why hardcoded unique and db_index?

2009-04-06 Thread MS
olution may be just wrong). > > And another problem: I found that the SQL generated by `manage.py sql` > > You lose more points for doing this. One question at a time please - > otherwise it rapidly becomes impossible to track which responses are > solving which problem. OK, th

Why hardcoded unique and db_index?

2009-04-06 Thread MS
ts create indexes in database (at least mysql). So 'manage.py sqlindexes' is actually redundant, because the 'create index' commands generated by it, only change the names of indexes. Is this a bug or not? Regards MS --~--~-~--~~~---~--~~ You rec