mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-30 07:22:35 +01:00
fixed: changed Journaling for osx to prevent db corruption
This commit is contained in:
parent
d4331e9470
commit
9d8011042e
@ -29,7 +29,7 @@ namespace NzbDrone.Core.Datastore
|
||||
connectionBuilder.DataSource = dbPath;
|
||||
connectionBuilder.CacheSize = (int)-10.Megabytes();
|
||||
connectionBuilder.DateTimeKind = DateTimeKind.Utc;
|
||||
connectionBuilder.JournalMode = SQLiteJournalModeEnum.Wal;
|
||||
connectionBuilder.JournalMode = OsInfo.IsOsx ? SQLiteJournalModeEnum.Truncate : SQLiteJournalModeEnum.Wal;
|
||||
connectionBuilder.Pooling = true;
|
||||
|
||||
return connectionBuilder.ConnectionString;
|
||||
|
Loading…
Reference in New Issue
Block a user