mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-03 12:23:27 +02:00
fix #9983 MigrateNetworkConfiguration error
This commit is contained in:
parent
1ea8150b0c
commit
78c17ba895
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue