The Free Software Media System - Server Backend & API
Merge branch 'master' into fix-code-migration
Cody Robiberoedb6cd11da0c
diff --cc Jellyfin.Server/Migrations/JellyfinMigrationService.csindex 1299896cb9,5ef039a843..a5b6bc4604--- a/Jellyfin.Server/Migrations/JellyfinMigrationService.cs+++ b/Jellyfin.Server/Migrations/JellyfinMigrationService.cs@@@ -183,7 -183,13 +183,13 @@@ internal class JellyfinMigrationServic}}- public async Task MigrateStepAsync(JellyfinMigrationStageTypes stage, IServiceProvider serviceProvider)+ /// <summary>+ /// Runs all pending migrations of the requested stage.+ /// </summary>+ /// <param name="stage">The stage to migrate.</param>+ /// <param name="serviceProvider">The service provider handed to the migrations.</param>+ /// <returns>A value indicating whether at least one migration has been applied.</returns>- public async Task<bool> MigrateStepAsync(JellyfinMigrationStageTypes stage, IServiceProvider? serviceProvider)++ public async Task<bool> MigrateStepAsync(JellyfinMigrationStageTypes stage, IServiceProvider serviceProvider){var logger = _startupLogger.With(_loggerFactory.CreateLogger<JellyfinMigrationService>()).BeginGroup($"Migrate stage {stage}.");ICollection<CodeMigration> migrationStage = (Migrations.FirstOrDefault(e => e.Stage == stage) as ICollection<CodeMigration>) ?? [];