mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Make updating database schema more robust. Now updating the schema but failing to update the version should be impossible
This commit is contained in:
parent
8fa21c510d
commit
b723baa16c
@ -477,7 +477,6 @@ class LibraryDatabase2(LibraryDatabase):
|
||||
else:
|
||||
print 'Upgrading database to version %d...'%(self.user_version+1)
|
||||
meth()
|
||||
self.conn.commit()
|
||||
self.user_version += 1
|
||||
|
||||
self.data = ResultCache()
|
||||
|
Loading…
x
Reference in New Issue
Block a user