1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-27 18:17:13 +00:00

New: Max DB Size is now 512MB (was 256MB)

This commit is contained in:
Mark McDowall 2012-08-14 11:51:25 -07:00
parent 653a0864c3
commit c2a1df61f6
3 changed files with 4 additions and 4 deletions

View file

@ -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);
}

View 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)

View file

@ -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();