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

This commit is contained in:
Taloth Saldono 2019-12-18 20:39:31 +01:00
parent 93b20960b8
commit 07f5c21a07
1 changed files with 2 additions and 0 deletions

View File

@ -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";