Edgewall Software
Modify

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

I assume you know about #T8575? Fixed only in 0.12.1, but you could borrow the sequence update line for PostgreSQL.

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.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain hodgestar.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.