diff options
| author | Sky-High <el.bakkum@gmail.com> | 2023-07-11 02:13:55 +0200 |
|---|---|---|
| committer | Sky-High <el.bakkum@gmail.com> | 2023-07-11 02:13:55 +0200 |
| commit | 78c17ba895b16a063e30171a5f2c663d65e37c2c (patch) | |
| tree | 335b6663f725a0129f4fdc2f93fc415e7a4dacd0 | |
| parent | 1ea8150b0ce815ffe0936e3c2629645b2afa9525 (diff) | |
fix #9983 MigrateNetworkConfiguration error
| -rw-r--r-- | Jellyfin.Server/Migrations/MigrationRunner.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Jellyfin.Server/Migrations/MigrationRunner.cs b/Jellyfin.Server/Migrations/MigrationRunner.cs index 33c02f41c..2db0b77cd 100644 --- a/Jellyfin.Server/Migrations/MigrationRunner.cs +++ b/Jellyfin.Server/Migrations/MigrationRunner.cs @@ -93,7 +93,7 @@ namespace Jellyfin.Server.Migrations private static void HandleStartupWizardCondition(IEnumerable<IMigrationRoutine> migrations, MigrationOptions migrationOptions, bool isStartWizardCompleted, ILogger logger) { - if (isStartWizardCompleted || migrationOptions.Applied.Count != 0) + if (isStartWizardCompleted) { return; } @@ -106,6 +106,8 @@ namespace Jellyfin.Server.Migrations private static void PerformMigrations(IMigrationRoutine[] migrations, MigrationOptions migrationOptions, Action<MigrationOptions> saveConfiguration, ILogger logger) { + // save already applied migrations, and skip them thereafter + saveConfiguration(migrationOptions); var appliedMigrationIds = migrationOptions.Applied.Select(m => m.Id).ToHashSet(); for (var i = 0; i < migrations.Length; i++) |
