From 556bd117259eb8ae110a617f79ab87a951b0835d Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Wed, 18 Dec 2019 23:09:10 +0100 Subject: [PATCH] Disable pooling rather than clearing it --- .../128_rename_quality_profiles_add_upgrade_allowed.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/NzbDrone.Core/Datastore/Migration/128_rename_quality_profiles_add_upgrade_allowed.cs b/src/NzbDrone.Core/Datastore/Migration/128_rename_quality_profiles_add_upgrade_allowed.cs index 9775c0b87..12ee67eb0 100644 --- a/src/NzbDrone.Core/Datastore/Migration/128_rename_quality_profiles_add_upgrade_allowed.cs +++ b/src/NzbDrone.Core/Datastore/Migration/128_rename_quality_profiles_add_upgrade_allowed.cs @@ -39,12 +39,13 @@ namespace NzbDrone.Core.Datastore.Migration // Early Radarr versions can mess up Sonarr's database if they point to the same config. Fixup the damage. private void FixupMigration111() { + var builder = new SQLiteConnectionStringBuilder(ConnectionString); + builder.Pooling = false; + // In order to get the expressions we need to check the database directly - using (var connection = new SQLiteConnection(ConnectionString)) + using (var connection = new SQLiteConnection(builder.ToString())) using (var command = connection.CreateCommand()) { - SQLiteConnection.ClearPool(connection); - connection.Open(); command.CommandText = "SELECT Description FROM VersionInfo WHERE Version = 111";