Skip to content

Commit 98ca9f3

Browse files
author
Richard Jones
committed
better upgrading
1 parent 169ad5e commit 98ca9f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roundup/backends/rdbms_common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.98.2.7 2004-06-09 07:03:15 richard Exp $
1+
# $Id: rdbms_common.py,v 1.98.2.8 2004-06-09 09:48:49 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -201,7 +201,7 @@ def upgrade_db(self):
201201
# nothing to do
202202
return 0
203203

204-
if version == 1:
204+
if version < 2:
205205
# change the schema structure
206206
self.database_schema = {'tables': self.database_schema}
207207

@@ -213,7 +213,7 @@ def upgrade_db(self):
213213
# database
214214
self.create_version_2_tables()
215215

216-
if version == 2:
216+
if version < 3:
217217
self.fix_version_2_tables()
218218

219219
self.database_schema['version'] = self.current_db_version

0 commit comments

Comments
 (0)