summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6ccf6de)
raw | patch | inline | side by side (parent: 6ccf6de)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 17 Mar 2004 22:01:37 +0000 (22:01 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 17 Mar 2004 22:01:37 +0000 (22:01 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2150 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/rdbms_common.py | patch | blob | history |
index c2d341c5071e30f0065f8794cd3808fde39d0f9e..2d030365750679496c7a8925c1e5468814cbfc81 100644 (file)
-# $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:
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