journal mode was not being set on media db
This commit is contained in:
parent
ea261f547a
commit
63f8e510d8
@ -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 New Issue
Block a user