fix: open the connection when using SqliteConnection directly

This commit is contained in:
cvium
2023-09-16 07:25:29 +02:00
parent 5a71b8beed
commit ba928d872e
5 changed files with 8 additions and 2 deletions

View File

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