update db migration

This commit is contained in:
Luke Pulverenti
2016-02-04 13:04:04 -05:00
parent 7614707dad
commit d28ef71d93
5 changed files with 13 additions and 22 deletions

View File

@@ -18,7 +18,8 @@ namespace MediaBrowser.Server.Startup.Common.Migrations
public void Run()
{
if (_config.Configuration.MigrationVersion < CleanDatabaseScheduledTask.MigrationVersion)
if (_config.Configuration.MigrationVersion < CleanDatabaseScheduledTask.MigrationVersion &&
_config.Configuration.IsStartupWizardCompleted)
{
_taskManager.SuspendTriggers = true;
CleanDatabaseScheduledTask.EnableUnavailableMessage = true;