From: richard Date: Wed, 17 Mar 2004 22:01:37 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d181a7613df72cc6b8f99eed6339e9e265b5520d;p=roundup.git *** empty log message *** git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2150 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/backends/rdbms_common.py b/roundup/backends/rdbms_common.py index c2d341c..2d03036 100644 --- a/roundup/backends/rdbms_common.py +++ b/roundup/backends/rdbms_common.py @@ -1,4 +1,4 @@ -# $Id: rdbms_common.py,v 1.79 2004-03-15 05:50:20 richard Exp $ +# $Id: rdbms_common.py,v 1.80 2004-03-17 22:01:37 richard Exp $ ''' Relational database (SQL) backend common code. Basics: @@ -184,14 +184,16 @@ class Database(FileStorage, hyperdb.Database, roundupdb.Database): Return boolean whether we need to save the schema. ''' version = self.database_schema.get('version', 1) + if version == self.current_db_version: + # nothing to do + return 0 + if version == 1: # version 1 doesn't have the OTK, session and indexing in the # database self.create_version_2_tables() # version 1 also didn't have the actor column self.add_actor_column() - else: - return 0 self.database_schema['version'] = self.current_db_version return 1