|
|
|
@ -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++)
|
|
|
|
|