comparison roundup/backends/back_sqlite.py @ 2722:8140fb128088 maint-0.7

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Thu, 07 Oct 2004 06:33:57 +0000
parents 8f29eea8d46d
children d3a5e382d44a
comparison
equal deleted inserted replaced
2718:b97aa2a9a504 2722:8140fb128088
1 # $Id: back_sqlite.py,v 1.27.2.1 2004-05-10 00:15:59 richard Exp $ 1 # $Id: back_sqlite.py,v 1.27.2.2 2004-10-07 06:33:57 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
104 dbspec = tables[classname] 104 dbspec = tables[classname]
105 self.update_class(spec, dbspec, force=1, adding_v2=1) 105 self.update_class(spec, dbspec, force=1, adding_v2=1)
106 # we've updated - don't try again 106 # we've updated - don't try again
107 tables[classname] = spec.schema() 107 tables[classname] = spec.schema()
108 108
109 def fix_version_3_tables(self):
110 # NOOP - no restriction on column length here
111 pass
112
109 def update_class(self, spec, old_spec, force=0, adding_v2=0): 113 def update_class(self, spec, old_spec, force=0, adding_v2=0):
110 ''' Determine the differences between the current spec and the 114 ''' Determine the differences between the current spec and the
111 database version of the spec, and update where necessary. 115 database version of the spec, and update where necessary.
112 116
113 If 'force' is true, update the database anyway. 117 If 'force' is true, update the database anyway.

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