Fix a bug in the schema upgrade code

This commit is contained in:
Thomas Perl 2011-02-01 17:31:18 +01:00
parent 64a2e214bc
commit f4533770b2

View file

@ -93,7 +93,7 @@ def initialize_database(db):
def upgrade(db):
if db.execute('PRAGMA table_info(version)').rowcount == -1:
if not list(db.execute('PRAGMA table_info(version)')):
initialize_database(db)
return