aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations/Routines/RemoveDuplicateExtras.cs
diff options
context:
space:
mode:
authorcvium <clausvium@gmail.com>2023-09-16 07:25:29 +0200
committercvium <clausvium@gmail.com>2023-09-16 07:25:29 +0200
commitba928d872e823ff679117724aebecbec0fa0f9f6 (patch)
tree48c12bdc1408efe7abbe1c1693f4dad8493f8964 /Jellyfin.Server/Migrations/Routines/RemoveDuplicateExtras.cs
parent5a71b8beed951792226981b9d9cf691726e51f07 (diff)
fix: open the connection when using SqliteConnection directly
Diffstat (limited to 'Jellyfin.Server/Migrations/Routines/RemoveDuplicateExtras.cs')
-rw-r--r--Jellyfin.Server/Migrations/Routines/RemoveDuplicateExtras.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Server/Migrations/Routines/RemoveDuplicateExtras.cs b/Jellyfin.Server/Migrations/Routines/RemoveDuplicateExtras.cs
index 6c34e1f5b..7b0d9456d 100644
--- a/Jellyfin.Server/Migrations/Routines/RemoveDuplicateExtras.cs
+++ b/Jellyfin.Server/Migrations/Routines/RemoveDuplicateExtras.cs
@@ -38,7 +38,8 @@ namespace Jellyfin.Server.Migrations.Routines
{
var dataPath = _paths.DataPath;
var dbPath = Path.Combine(dataPath, DbFilename);
- using (var connection = new SqliteConnection($"Filename={dbPath}"))
+ using var connection = new SqliteConnection($"Filename={dbPath}");
+ connection.Open();
using (var transaction = connection.BeginTransaction())
{
// Query the database for the ids of duplicate extras