mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
journal mode was not being set on media db
This commit is contained in:
parent
ea261f547a
commit
63f8e510d8
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ pub(super) fn open_or_create<P: AsRef<Path>>(path: P) -> Result<Connection> {
|
|||
|
||||
db.pragma_update(None, "page_size", &4096)?;
|
||||
db.pragma_update(None, "legacy_file_format", &false)?;
|
||||
db.pragma_update(None, "journal", &"wal")?;
|
||||
db.pragma_update_and_check(None, "journal_mode", &"wal", |_| Ok(()))?;
|
||||
|
||||
initial_db_setup(&mut db)?;
|
||||
|
||||
|
|
Loading…
Reference in a new issue