mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 01:57:21 +00:00
New: Max DB Size is now 512MB (was 256MB)
This commit is contained in:
parent
653a0864c3
commit
c2a1df61f6
3 changed files with 4 additions and 4 deletions
|
@ -77,7 +77,7 @@ public static string GetConfigPath(this EnvironmentProvider environmentProvider)
|
|||
return Path.Combine(environmentProvider.ApplicationPath, APP_CONFIG_FILE);
|
||||
}
|
||||
|
||||
public static string GetNzbDronoeDbFile(this EnvironmentProvider environmentProvider)
|
||||
public static string GetNzbDroneDbFile(this EnvironmentProvider environmentProvider)
|
||||
{
|
||||
return Path.Combine(environmentProvider.GetAppDataPath(), NZBDRONE_DB_FILE);
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ public String MainConnectionString
|
|||
{
|
||||
get
|
||||
{
|
||||
return GetConnectionString(_environmentProvider.GetNzbDronoeDbFile());
|
||||
return GetConnectionString(_environmentProvider.GetNzbDroneDbFile());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ public String LogConnectionString
|
|||
|
||||
public static string GetConnectionString(string path)
|
||||
{
|
||||
return String.Format("Data Source={0}", path);
|
||||
return String.Format("Data Source=\"{0}\"; Max Database Size = 512;", path);
|
||||
}
|
||||
|
||||
public IDatabase GetMainPetaPocoDb(Boolean profiled = true)
|
||||
|
|
|
@ -25,7 +25,7 @@ public BackupProvider()
|
|||
|
||||
public virtual string CreateBackupZip()
|
||||
{
|
||||
var dbFile = _environmentProvider.GetNzbDronoeDbFile();
|
||||
var dbFile = _environmentProvider.GetNzbDroneDbFile();
|
||||
var configFile = _environmentProvider.GetConfigPath();
|
||||
var zipFile = _environmentProvider.GetConfigBackupFile();
|
||||
|
||||
|
|
Loading…
Reference in a new issue