From 07f5c21a076120e3d90c1a02ae4d4f19d7c474f1 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Wed, 18 Dec 2019 20:39:31 +0100 Subject: [PATCH] Clear the connection pool in the backdoor migration to prevent occasional conflicts with following migrations --- .../128_rename_quality_profiles_add_upgrade_allowed.cs | 2 ++ 1 file changed, 2 insertions(+) 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 c56c59e8b..9775c0b87 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 @@ -43,6 +43,8 @@ namespace NzbDrone.Core.Datastore.Migration using (var connection = new SQLiteConnection(ConnectionString)) using (var command = connection.CreateCommand()) { + SQLiteConnection.ClearPool(connection); + connection.Open(); command.CommandText = "SELECT Description FROM VersionInfo WHERE Version = 111";