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
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
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
3 matches
Mail list logo