Re: Custom Auto-Incrementing Columns

2008-05-13 Thread David Cramer
In MySQL and PostgreSQL you can go into the database and modify the auto increment sequence value to start at something else. There's no way to set that via Django at the moment. On May 13, 4:49 pm, jwwest <[EMAIL PROTECTED]> wrote: > Hi all, > > Is there a way to create a column that has a uniqu

Custom Auto-Incrementing Columns

2008-05-13 Thread jwwest
Hi all, Is there a way to create a column that has a unique id per row like id, but where I can specify the number it starts from? Basically I'm working on a ecommerce system and I would like the sales order numbers to start from say, 1000. I'd use ID, but as far as I know, it starts from 1. - J