Skip to content

Commit bae4283

Browse files
author
Richard Jones
committed
reset ID counters if the database is cleared
1 parent f9e6ad4 commit bae4283

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ Fixed:
4545
- demo tracker is always set up on localhost (sf bug 1049101)
4646

4747

48+
2004-10-?? 0.7.10
49+
Fixed:
50+
- reset ID counters if the database is cleared (thanks William)
51+
52+
4853
2004-10-?? 0.7.9
4954
Feature:
5055
- DateHTMLProperty.field() accepts format string (thanks Wil Cooley)

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ Mike Thompson,
139139
Martin Uzak,
140140
Darryl VanDorp,
141141
J Vickroy,
142+
William,
142143
Chris Withers.
143144

144145

roundup/backends/rdbms_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.141 2004-11-25 23:53:31 richard Exp $
1+
# $Id: rdbms_common.py,v 1.142 2004-12-03 22:11:06 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -671,6 +671,7 @@ def clear(self):
671671
for cn in self.classes.keys():
672672
sql = 'delete from _%s'%cn
673673
self.sql(sql)
674+
self.setid(cn, 0)
674675

675676
#
676677
# Nodes

0 commit comments

Comments
 (0)