Skip to content

Commit 6e343f1

Browse files
author
Richard Jones
committed
Clean out sessions / otks tables when migrating
1 parent 340e770 commit 6e343f1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGES.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ Fixed:
3535
- removed safeget() from the API (sf bug 994750)
3636

3737

38-
2004-??-?? 0.7.7
38+
2004-10-15 0.7.8
39+
Fixed:
40+
- Clean out sessions / otks tables when migrating
41+
42+
43+
2004-10-11 0.7.7
3944
Fixed:
4045
- ZRoundup's search interface works now (sf bug 994957)
4146
- fixed history display when "ascending"

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.136 2004-10-08 01:28:32 richard Exp $
1+
# $Id: rdbms_common.py,v 1.137 2004-10-14 22:27:59 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -250,6 +250,7 @@ def upgrade_db(self):
250250
def fix_version_3_tables(self):
251251
# drop the shorter VARCHAR OTK column and add a new TEXT one
252252
for name in ('otk', 'session'):
253+
self.sql('DELETE FROM %ss'%name)
253254
self.sql('ALTER TABLE %ss DROP %s_value'%(name, name))
254255
self.sql('ALTER TABLE %ss ADD %s_value TEXT'%(name, name))
255256

0 commit comments

Comments
 (0)