Modify ↓
Ticket #760 (assigned defect)
Autoincrementing primary keys for sqlite3
| Reported by: | Jonttu | Owned by: | andrew |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.0 |
| Component: | databaseapi | Version: | 0.7.3 |
| Keywords: | sqlite3 autoincrement primary key | Cc: |
Description
Sqlite3 re-uses primary keys by default. If a row is deleted, the next one will use the same id. This is bad and AFAIK other dbms always increment the primary key by default.
This can be fixed for sqlite3 by explicitely giving the autoincrement keyword for the primary key column.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

Related django ticket: http://code.djangoproject.com/ticket/10164