Re: Fixtures auto-incrementing primary keys?

2007-09-08 Thread Nathaniel Whiteinge
Thanks for the replies, both. > This idea has occurred to me before, and I can see how it could be > useful, but I got caught up on one significant detail: how do you > handle references? When you specify the PK, you provide an identifier > to use as a cross reference. If this identifier no

Re: Fixtures auto-incrementing primary keys?

2007-09-06 Thread Russell Keith-Magee
On 9/7/07, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > > Can fixtures have auto-incrementing primary keys or must you have > specific PKs in the the serialized json/xml/etc files? If not, is > there a reason for this? This idea has occurred to me before, and I can see how it could be

Re: Fixtures auto-incrementing primary keys?

2007-09-06 Thread [EMAIL PROTECTED]
On Sep 6, 10:55 pm, Nathaniel Whiteinge <[EMAIL PROTECTED]> wrote: > Can fixtures have auto-incrementing primary keys or must you have > specific PKs in the the serialized json/xml/etc files? If not, is > there a reason for this? > > I'm programmatically generating fixtures from Freebase.org

Fixtures auto-incrementing primary keys?

2007-09-06 Thread Nathaniel Whiteinge
Can fixtures have auto-incrementing primary keys or must you have specific PKs in the the serialized json/xml/etc files? If not, is there a reason for this? I'm programmatically generating fixtures from Freebase.org queries for a project. Although it's not a much extra work to add a pk counter,