|
|
@ -359,13 +359,19 @@ namespace MediaBrowser.Server.Startup.Common
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var migrations = new List<IVersionMigration>
|
|
|
|
var migrations = new List<IVersionMigration>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new RenameXmlOptions(ServerConfigurationManager)
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var task in migrations)
|
|
|
|
foreach (var task in migrations)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
task.Run();
|
|
|
|
task.Run();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Logger.ErrorException("Error running migration", ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void PerformPostInitMigrations()
|
|
|
|
private void PerformPostInitMigrations()
|
|
|
@ -378,9 +384,16 @@ namespace MediaBrowser.Server.Startup.Common
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var task in migrations)
|
|
|
|
foreach (var task in migrations)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
task.Run();
|
|
|
|
task.Run();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Logger.ErrorException("Error running migration", ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|