diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-02-03 15:52:45 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-02-03 15:52:45 -0500 |
| commit | 6cb1f77789171f4be7a4c6cd9e075eb4e8b6eff0 (patch) | |
| tree | c094a0149457dcd3d91669b5b0869491ac91cba9 /MediaBrowser.Server.Startup.Common/ApplicationHost.cs | |
| parent | 89a3a77110ac864f13e8b61b7e95a58f10315298 (diff) | |
update upgrade process
Diffstat (limited to 'MediaBrowser.Server.Startup.Common/ApplicationHost.cs')
| -rw-r--r-- | MediaBrowser.Server.Startup.Common/ApplicationHost.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs index f75aeebddc..7f79653afe 100644 --- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs +++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs @@ -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); |
