mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-04 06:38:28 +02:00
New: Max DB Size is now 512MB (was 256MB)
This commit is contained in:
parent
653a0864c3
commit
c2a1df61f6
@ -77,7 +77,7 @@ public static string GetConfigPath(this EnvironmentProvider environmentProvider)
|
|||||||
return Path.Combine(environmentProvider.ApplicationPath, APP_CONFIG_FILE);
|
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);
|
return Path.Combine(environmentProvider.GetAppDataPath(), NZBDRONE_DB_FILE);
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ public String MainConnectionString
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return GetConnectionString(_environmentProvider.GetNzbDronoeDbFile());
|
return GetConnectionString(_environmentProvider.GetNzbDroneDbFile());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ public String LogConnectionString
|
|||||||
|
|
||||||
public static string GetConnectionString(string path)
|
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)
|
public IDatabase GetMainPetaPocoDb(Boolean profiled = true)
|
||||||
|
@ -25,7 +25,7 @@ public BackupProvider()
|
|||||||
|
|
||||||
public virtual string CreateBackupZip()
|
public virtual string CreateBackupZip()
|
||||||
{
|
{
|
||||||
var dbFile = _environmentProvider.GetNzbDronoeDbFile();
|
var dbFile = _environmentProvider.GetNzbDroneDbFile();
|
||||||
var configFile = _environmentProvider.GetConfigPath();
|
var configFile = _environmentProvider.GetConfigPath();
|
||||||
var zipFile = _environmentProvider.GetConfigBackupFile();
|
var zipFile = _environmentProvider.GetConfigBackupFile();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user