mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
switch sqlite to use WAL mode by default to prevent database locked errors
This commit is contained in:
parent
188670eb8b
commit
611216765d
2 changed files with 5 additions and 0 deletions
|
@ -107,6 +107,9 @@ DATABASES = {
|
|||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': DATABASE_NAME,
|
||||
'OPTIONS': {
|
||||
'init_command': 'PRAGMA journal_mode=wal;',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue