mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 17:24:46 +03:00
Feature/version check in library migration (#14105)
This commit is contained in:
@@ -9,6 +9,7 @@ using Jellyfin.Data.Enums;
|
||||
using Jellyfin.Database.Implementations;
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
using Jellyfin.Extensions.Json;
|
||||
using Jellyfin.Server.ServerSetupApp;
|
||||
using MediaBrowser.Common.Configuration;
|
||||
using MediaBrowser.Common.Extensions;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
@@ -22,7 +23,7 @@ namespace Jellyfin.Server.Migrations.Routines;
|
||||
[JellyfinMigration("2025-04-21T00:00:00", nameof(MigrateKeyframeData))]
|
||||
public class MigrateKeyframeData : IDatabaseMigrationRoutine
|
||||
{
|
||||
private readonly ILogger<MigrateKeyframeData> _logger;
|
||||
private readonly IStartupLogger _logger;
|
||||
private readonly IApplicationPaths _appPaths;
|
||||
private readonly IDbContextFactory<JellyfinDbContext> _dbProvider;
|
||||
private static readonly JsonSerializerOptions _jsonOptions = JsonDefaults.Options;
|
||||
@@ -30,15 +31,15 @@ public class MigrateKeyframeData : IDatabaseMigrationRoutine
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="MigrateKeyframeData"/> class.
|
||||
/// </summary>
|
||||
/// <param name="logger">The logger.</param>
|
||||
/// <param name="startupLogger">The startup logger for Startup UI intigration.</param>
|
||||
/// <param name="appPaths">Instance of the <see cref="IApplicationPaths"/> interface.</param>
|
||||
/// <param name="dbProvider">The EFCore db factory.</param>
|
||||
public MigrateKeyframeData(
|
||||
ILogger<MigrateKeyframeData> logger,
|
||||
IStartupLogger startupLogger,
|
||||
IApplicationPaths appPaths,
|
||||
IDbContextFactory<JellyfinDbContext> dbProvider)
|
||||
{
|
||||
_logger = logger;
|
||||
_logger = startupLogger;
|
||||
_appPaths = appPaths;
|
||||
_dbProvider = dbProvider;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user