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:
Damien Elmes 2017-01-16 15:08:50 +10:00 committed by GitHub
commit 9db8fb66e9

View File

@ -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.execute("update meta set lastUsn=0,dirMod=0")
self.db.commit() self.db.commit()
self.db.setAutocommit(True) self.db.setAutocommit(True)
self.db.execute("vacuum analyze") self.db.execute("vacuum")
self.db.execute("analyze")
self.db.setAutocommit(False) self.db.setAutocommit(False)
# Media syncing: zips # Media syncing: zips