Opened 14 years ago
Closed 14 years ago
#632 closed defect (fixed)
Postgres sequence not reset after add_last_activity_to_build upgrade script
Reported by: | osimons | Owned by: | hodgestar |
---|---|---|---|
Priority: | major | Milestone: | 0.6 |
Component: | General | Version: | 0.6b2 |
Keywords: | Cc: | ||
Operating System: | BSD |
Description
A table is copied back and forth, but the sequence is not updated afterwards so the sequence gets reset to 1.
This was the bitten_build_id_seq.
Attachments (0)
Change History (3)
comment:1 Changed 14 years ago by rblank
comment:2 Changed 14 years ago by osimons
Already got one, thanks: source:/trunk/bitten/upgrades.py#L35
No magic involved, so you still have to remember to actually call it... :-)
comment:3 Changed 14 years ago by hodgestar
- Resolution set to fixed
- Status changed from new to closed
Tests of sequence values post upgrade commited to trunk in r924. Fix committed to trunk in r925. Both backported to 0.6.x in r926.
Note: After discussion with osimons I fixed the relevant upgrade function rather than bumping the schema version and creating a whole new upgrade function. The grounds for this decision was that there hasn't actually been a release since the bug was introduced.
I assume you know about #T8575? Fixed only in 0.12.1, but you could borrow the sequence update line for PostgreSQL.