Mercurial > p > roundup > code
comparison roundup/backends/back_sqlite.py @ 2721:1cd01cf106e1
extend OTK and session table value cols to TEXT [SF#1031271]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 07 Oct 2004 06:30:20 +0000 |
| parents | 8250c63c3963 |
| children | 402d6d556558 |
comparison
equal
deleted
inserted
replaced
| 2720:15d945dff53d | 2721:1cd01cf106e1 |
|---|---|
| 1 # $Id: back_sqlite.py,v 1.32 2004-07-27 11:11:03 a1s Exp $ | 1 # $Id: back_sqlite.py,v 1.33 2004-10-07 06:30:20 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 |
| 112 dbspec = tables[classname] | 112 dbspec = tables[classname] |
| 113 self.update_class(spec, dbspec, force=1, adding_v2=1) | 113 self.update_class(spec, dbspec, force=1, adding_v2=1) |
| 114 # we've updated - don't try again | 114 # we've updated - don't try again |
| 115 tables[classname] = spec.schema() | 115 tables[classname] = spec.schema() |
| 116 | 116 |
| 117 def fix_version_3_tables(self): | |
| 118 # NOOP - no restriction on column length here | |
| 119 pass | |
| 120 | |
| 117 def update_class(self, spec, old_spec, force=0, adding_v2=0): | 121 def update_class(self, spec, old_spec, force=0, adding_v2=0): |
| 118 ''' Determine the differences between the current spec and the | 122 ''' Determine the differences between the current spec and the |
| 119 database version of the spec, and update where necessary. | 123 database version of the spec, and update where necessary. |
| 120 | 124 |
| 121 If 'force' is true, update the database anyway. | 125 If 'force' is true, update the database anyway. |
