Skip to content

Commit 304d199

Browse files
author
Richard Jones
committed
*** empty log message ***
1 parent 513a1d7 commit 304d199

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

roundup/backends/rdbms_common.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
44
Basics:
@@ -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

0 commit comments

Comments
 (0)