Skip to content

Commit 0d42029

Browse files
author
Richard Jones
committed
fix schema mutation in sqlite backends (thanks Tamer Fahmy)
(specifically for trackers with missing ids)
1 parent 0c5fb00 commit 0d42029

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Fixed:
88
- missing CRLF var in rfc822.py (sf patch 949471)
99
- fix user creation page
1010
- have roundup server pass though the cause of a "403 Forbidden" response
11+
- fix schema mutation in sqlite backends (thanks Tamer Fahmy)
1112

1213

1314
2004-05-06 0.7.0

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ Kelley Dagley,
7777
Paul F. Dubois,
7878
Jeff Epler,
7979
Tom Epperly,
80+
Tamer Fahmy,
8081
Hernan Martinez Foffani,
8182
Stuart D. Gathman,
8283
Ajit George,

roundup/backends/back_sqlite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_sqlite.py,v 1.27 2004-05-02 23:16:05 richard Exp $
1+
# $Id: back_sqlite.py,v 1.27.2.1 2004-05-10 00:15:59 richard Exp $
22
'''Implements a backend for SQLite.
33
44
See https://pysqlite.sourceforge.net/ for pysqlite info
@@ -202,7 +202,7 @@ def update_class(self, spec, old_spec, force=0, adding_v2=0):
202202
self.create_class_table(spec)
203203

204204
if olddata:
205-
inscols = ['_actor', '_activity', '_creation', '_creator']
205+
inscols = ['id', '_actor', '_activity', '_creation', '_creator']
206206
for propname,x in new_spec[1]:
207207
prop = properties[propname]
208208
if isinstance(prop, hyperdb.Multilink):

0 commit comments

Comments
 (0)