missed a spot

This commit is contained in:
cvium 2023-09-16 07:27:22 +02:00
parent ba928d872e
commit 4fe641b55d
2 changed files with 3 additions and 1 deletions

View File

@ -63,8 +63,9 @@ namespace Jellyfin.Server.Migrations.Routines
var dataPath = _paths.DataPath; var dataPath = _paths.DataPath;
using (var connection = new SqliteConnection($"Filename={Path.Combine(dataPath, DbFilename)}")) using (var connection = new SqliteConnection($"Filename={Path.Combine(dataPath, DbFilename)}"))
{ {
using var userDbConnection = new SqliteConnection($"Filename={Path.Combine(dataPath, "users.db")}");
connection.Open(); connection.Open();
using var userDbConnection = new SqliteConnection($"Filename={Path.Combine(dataPath, "users.db")}");
userDbConnection.Open(); userDbConnection.Open();
_logger.LogWarning("Migrating the activity database may take a while, do not stop Jellyfin."); _logger.LogWarning("Migrating the activity database may take a while, do not stop Jellyfin.");
using var dbContext = _provider.CreateDbContext(); using var dbContext = _provider.CreateDbContext();

View File

@ -86,6 +86,7 @@ namespace Jellyfin.Server.Migrations.Routines
var dbFilePath = Path.Combine(_paths.DataPath, DbFilename); var dbFilePath = Path.Combine(_paths.DataPath, DbFilename);
using (var connection = new SqliteConnection($"Filename={dbFilePath}")) using (var connection = new SqliteConnection($"Filename={dbFilePath}"))
{ {
connection.Open();
using var dbContext = _provider.CreateDbContext(); using var dbContext = _provider.CreateDbContext();
var results = connection.Query("SELECT * FROM userdisplaypreferences"); var results = connection.Query("SELECT * FROM userdisplaypreferences");