Re: loaddata against postgresql doesn't update primary key's sequence 'last_value' ?

2007-04-05 Thread Russell Keith-Magee
On 4/5/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > On 4/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > http://code.djangoproject.com/ticket/3790 > > Thanks for that Zach - I didn't notice this one go past. I've closed > off #3915 as a duplicate. FYI - I've just committed [4937],

Re: loaddata against postgresql doesn't update primary key's sequence 'last_value' ?

2007-04-04 Thread Russell Keith-Magee
On 4/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I think you can fix it by running something like: > > $ python manage.py sqlsequencereset | psql mydbname Correct. I'll be merge something similar to that into the loaddata code. > When you load data with the primary keys already set it

Re: loaddata against postgresql doesn't update primary key's sequence 'last_value' ?

2007-04-04 Thread Jon Ballard
> I think you can fix it by running something like: > > $ python manage.py sqlsequencereset | psql mydbname > > When you load data with the primary keys already set it doesn't update > the postgres sequence generator. There's a ticket about how this > affects fixture loading: > > http://code.djan

Re: loaddata against postgresql doesn't update primary key's sequence 'last_value' ?

2007-04-04 Thread [EMAIL PROTECTED]
On Apr 3, 10:28 pm, "Jon Ballard" <[EMAIL PROTECTED]> wrote: > Hello everybody, I'm new. Django is the bomb.. my app is coming > together quickly. > > Now to my issue.. > > I dumped my database to json and tried to ingest it back in. Seemed > to work fine at first -- everything was there -- but

Re: loaddata against postgresql doesn't update primary key's sequence 'last_value' ?

2007-04-03 Thread Russell Keith-Magee
On 4/4/07, Jon Ballard <[EMAIL PROTECTED]> wrote: > > Hello everybody, I'm new. Django is the bomb.. my app is coming > together quickly. Glad you like it. > Anyone have any ideas? Am I doing something wrong perhaps? Thanks > for any help. I don't think you're doing anything wrong - I've had

loaddata against postgresql doesn't update primary key's sequence 'last_value' ?

2007-04-03 Thread Jon Ballard
Hello everybody, I'm new. Django is the bomb.. my app is coming together quickly. Now to my issue.. I dumped my database to json and tried to ingest it back in. Seemed to work fine at first -- everything was there -- but it turns out no new records can be added because the sequence field 'last