update upgrade process

This commit is contained in:
Luke Pulverenti
2016-02-03 15:52:45 -05:00
parent 4fc3753f64
commit fb2a320416
6 changed files with 76 additions and 12 deletions

View File

@@ -317,6 +317,11 @@ namespace MediaBrowser.Server.Startup.Common
/// <returns>Task.</returns>
public override async Task RunStartupTasks()
{
if (ServerConfigurationManager.Configuration.MigrationVersion < CleanDatabaseScheduledTask.MigrationVersion)
{
TaskManager.SuspendTriggers = true;
}
await base.RunStartupTasks().ConfigureAwait(false);
Logger.Info("ServerId: {0}", SystemId);