mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Merge pull request #155 from dequis/vacuum-analyze-sqlite-3-15
Turn "vacuum analyze" into two commands (fix for sqlite 3.15)
This commit is contained in:
commit
9db8fb66e9
1 changed files with 2 additions and 1 deletions
|
@ -446,7 +446,8 @@ create table meta (dirMod int, lastUsn int); insert into meta values (0, 0);
|
|||
self.db.execute("update meta set lastUsn=0,dirMod=0")
|
||||
self.db.commit()
|
||||
self.db.setAutocommit(True)
|
||||
self.db.execute("vacuum analyze")
|
||||
self.db.execute("vacuum")
|
||||
self.db.execute("analyze")
|
||||
self.db.setAutocommit(False)
|
||||
|
||||
# Media syncing: zips
|
||||
|
|
Loading…
Reference in a new issue