From c874122fc094ef85c69f61facebbbaceba3a5368 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Fri, 30 Dec 2016 11:25:25 +0100 Subject: [PATCH] Use different folder to store sqlite database. Fixes #10. --- src/NzbDrone.Common/EnvironmentInfo/AppFolderInfo.cs | 2 +- src/NzbDrone.Core/Datastore/Migration/001_initial_setup.cs | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/NzbDrone.Common/EnvironmentInfo/AppFolderInfo.cs b/src/NzbDrone.Common/EnvironmentInfo/AppFolderInfo.cs index 75b75093e..0d35aed70 100644 --- a/src/NzbDrone.Common/EnvironmentInfo/AppFolderInfo.cs +++ b/src/NzbDrone.Common/EnvironmentInfo/AppFolderInfo.cs @@ -34,7 +34,7 @@ public AppFolderInfo(IStartupContext startupContext) } else { - AppDataFolder = Path.Combine(Environment.GetFolderPath(DATA_SPECIAL_FOLDER, Environment.SpecialFolderOption.None), "NzbDrone"); + AppDataFolder = Path.Combine(Environment.GetFolderPath(DATA_SPECIAL_FOLDER, Environment.SpecialFolderOption.None), "Radarr"); } StartUpFolder = new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName; diff --git a/src/NzbDrone.Core/Datastore/Migration/001_initial_setup.cs b/src/NzbDrone.Core/Datastore/Migration/001_initial_setup.cs index 53d7a9a17..02367724e 100644 --- a/src/NzbDrone.Core/Datastore/Migration/001_initial_setup.cs +++ b/src/NzbDrone.Core/Datastore/Migration/001_initial_setup.cs @@ -52,13 +52,10 @@ protected override void MainDbUpgrade() .WithColumn("Images").AsString() .WithColumn("Path").AsString() .WithColumn("Monitored").AsBoolean() - .WithColumn("QualityProfileId").AsInt32() - .WithColumn("SeasonFolder").AsBoolean() + .WithColumn("ProfileId").AsInt32() .WithColumn("LastInfoSync").AsDateTime().Nullable() .WithColumn("LastDiskSync").AsDateTime().Nullable() .WithColumn("Runtime").AsInt32() - .WithColumn("BacklogSetting").AsInt32() - .WithColumn("CustomStartDate").AsDateTime().Nullable() .WithColumn("InCinemas").AsDateTime().Nullable() .WithColumn("Year").AsInt32().Nullable() .WithColumn("Added").AsDateTime().Nullable()