Mercurial > p > roundup > code
comparison roundup/backends/back_sqlite.py @ 2273:c77483d2cda4
merge from maint-0-7
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 10 May 2004 00:42:49 +0000 |
| parents | ac4f295499a4 |
| children | 31cb1014300c |
comparison
equal
deleted
inserted
replaced
| 2264:9b34f41507ed | 2273:c77483d2cda4 |
|---|---|
| 1 # $Id: back_sqlite.py,v 1.27 2004-05-02 23:16:05 richard Exp $ | 1 # $Id: back_sqlite.py,v 1.28 2004-05-10 00:39:40 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): |
