comparison roundup/backends/back_sqlite.py @ 2271:8f29eea8d46d maint-0.7

fix schema mutation in sqlite backends (thanks Tamer Fahmy) (specifically for trackers with missing ids)
author Richard Jones <richard@users.sourceforge.net>
date Mon, 10 May 2004 00:15:59 +0000
parents ac4f295499a4
children 8140fb128088
comparison
equal deleted inserted replaced
2270:3cdefcb2b7d2 2271:8f29eea8d46d
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 $
2 '''Implements a backend for SQLite. 2 '''Implements a backend for SQLite.
3 3
4 See https://pysqlite.sourceforge.net/ for pysqlite info 4 See https://pysqlite.sourceforge.net/ for pysqlite info
5 5
6 6
200 200
201 # create the new table 201 # create the new table
202 self.create_class_table(spec) 202 self.create_class_table(spec)
203 203
204 if olddata: 204 if olddata:
205 inscols = ['_actor', '_activity', '_creation', '_creator'] 205 inscols = ['id', '_actor', '_activity', '_creation', '_creator']
206 for propname,x in new_spec[1]: 206 for propname,x in new_spec[1]:
207 prop = properties[propname] 207 prop = properties[propname]
208 if isinstance(prop, hyperdb.Multilink): 208 if isinstance(prop, hyperdb.Multilink):
209 continue 209 continue
210 elif isinstance(prop, hyperdb.Interval): 210 elif isinstance(prop, hyperdb.Interval):

Roundup Issue Tracker: http://roundup-tracker.org/