database migrate to multiple primary keys.

This commit is contained in:
clinton-hall 2014-05-27 20:24:37 +09:30
commit c7b320b3b8
2 changed files with 13 additions and 6 deletions

View file

@ -255,7 +255,7 @@ class SchemaUpgrade(object):
def checkDBVersion(self):
result = self.connection.select("SELECT db_version FROM db_version")
if result:
return int(result[0]["db_version"])
return int(result[-1]["db_version"])
else:
return 0