Fix a bug in the schema upgrade code
This commit is contained in:
parent
64a2e214bc
commit
f4533770b2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue