Opened 18 years ago
Closed 17 years ago
#2526 closed defect (fixed)
manage.py sqlsequencereset doesn't work with empty tables.
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Management commands) | Version: | dev |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'm using postgresql. If I delete the last item in a table and then pipe the output of manage.py sqlsequencereset to psql, it doesn't reset the sequence on empty tables. It should reset "is called" to No, and the last value to 1.
Note:
See TracTickets
for help on using tickets.
This must've been fixed a while ago, because I cannot reproduce it.