mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
we do the db integrity check on backup so need to in fixIntegrity()
This commit is contained in:
parent
98290c485d
commit
53215230b4
1 changed files with 0 additions and 4 deletions
|
@ -854,10 +854,6 @@ seq > :s and seq <= :e order by seq desc""", s=start, e=end)
|
|||
self.startProgress()
|
||||
self.updateProgress(_("Checking database..."))
|
||||
oldSize = os.stat(self.path)[stat.ST_SIZE]
|
||||
if self.db.scalar("pragma integrity_check") != "ok":
|
||||
self.finishProgress()
|
||||
return _("Database file is damaged.\n"
|
||||
"Please restore from automatic backup (see FAQ).")
|
||||
self.modSchema()
|
||||
# tags
|
||||
self.db.execute("delete from tags")
|
||||
|
|
Loading…
Reference in a new issue