File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1- # $Id: rdbms_common.py,v 1.79 2004-03-15 05:50:20 richard Exp $
1+ # $Id: rdbms_common.py,v 1.80 2004-03-17 22:01:37 richard Exp $
22''' Relational database (SQL) backend common code.
33
44Basics:
@@ -184,14 +184,16 @@ def upgrade_db(self):
184184 Return boolean whether we need to save the schema.
185185 '''
186186 version = self .database_schema .get ('version' , 1 )
187+ if version == self .current_db_version :
188+ # nothing to do
189+ return 0
190+
187191 if version == 1 :
188192 # version 1 doesn't have the OTK, session and indexing in the
189193 # database
190194 self .create_version_2_tables ()
191195 # version 1 also didn't have the actor column
192196 self .add_actor_column ()
193- else :
194- return 0
195197
196198 self .database_schema ['version' ] = self .current_db_version
197199 return 1
You can’t perform that action at this time.
0 commit comments