mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
commit before attempting to change page size
This commit is contained in:
parent
bc7b4e4d18
commit
11cd9af5ca
1 changed files with 1 additions and 0 deletions
|
@ -2742,6 +2742,7 @@ on reviewHistory (cardId, time)""")
|
|||
# seems to crash
|
||||
if (deck.s.scalar("pragma page_size") == 1024 or
|
||||
deck.s.scalar("pragma legacy_file_format") == 1):
|
||||
deck.s.commit()
|
||||
deck.s.execute("pragma page_size = 4096")
|
||||
deck.s.execute("pragma legacy_file_format = 0")
|
||||
deck.s.scalar("vacuum")
|
||||
|
|
Loading…
Reference in a new issue