Re: Django not creating intermediary tables for m2m relations

2010-08-10 Thread bksfu
Hi Xavier, I had dropped my tables earlier, so this wasn't the problem. Everything was being created afresh, although there were existing tables in the DB that had nothing to do with my models. All my existing tables had different names than the ones in my models. On Aug 7, 2:55 am, Xavier Ordoq

Re: Django not creating intermediary tables for m2m relations

2010-08-07 Thread Xavier Ordoquy
Hi, This will often happen when you have both model table created in the database and then you add some field and syncdb. Syncdb will not perform operation on tables that are already created, including created new fields or intermediate tables. However, if you start from scratch, this should be

Django not creating intermediary tables for m2m relations

2010-08-06 Thread bksfu
Hi All, When I run manage.py sqlall test, I get the proper MySQL create statements for my models, (Phone,Room). Room has a ManyToManyField(Phone) field, so I also get the proper intermediate Room_phones table: BEGIN; CREATE TABLE `Phone` ( `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY , bl