On 12 Sty, 22:53, David Nolen wrote:
> When migrating an existing db how do you create a proper join table
> for a ManyToMany field. I think I've got it mostly worked out except
> for the bit that looks like this in Django generated SQL:
>
> CREATE TABLE `blog_posts_authors` (
> `id` int(11) N
When migrating an existing db how do you create a proper join table
for a ManyToMany field. I think I've got it mostly worked out except
for the bit that looks like this in Django generated SQL:
CREATE TABLE `blog_posts_authors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`post_id` int(11) NOT NUL
2 matches
Mail list logo