mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 04:22:30 +01:00
Merge pull request #167 from Sonarr/sqlite-journal-osx
fixed: changed Journaling for osx to prevent db corruption
This commit is contained in:
commit
d478e6d932
@ -29,7 +29,7 @@ private static string GetConnectionString(string dbPath)
|
||||
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