Clear the connection pool in the backdoor migration to prevent occasional conflicts with following migrations

pull/3464/head
Taloth Saldono 5 years ago
parent 93b20960b8
commit 07f5c21a07

@ -43,6 +43,8 @@ namespace NzbDrone.Core.Datastore.Migration
using (var connection = new SQLiteConnection(ConnectionString)) using (var connection = new SQLiteConnection(ConnectionString))
using (var command = connection.CreateCommand()) using (var command = connection.CreateCommand())
{ {
SQLiteConnection.ClearPool(connection);
connection.Open(); connection.Open();
command.CommandText = "SELECT Description FROM VersionInfo WHERE Version = 111"; command.CommandText = "SELECT Description FROM VersionInfo WHERE Version = 111";

Loading…
Cancel
Save