missed a spot
This commit is contained in:
parent
ba928d872e
commit
4fe641b55d
|
@ -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();
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user