aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Startup.Common
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-02-03 17:42:33 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-02-03 17:43:27 -0500
commitdff32c24047e5eaffdb0918b44df9d96c54ccd8b (patch)
tree0f0b060209db933bbd46dee5171a407633ec53a1 /MediaBrowser.Server.Startup.Common
parent001c3c99b36ebf20118458076034c7ca271876e8 (diff)
update migration
Diffstat (limited to 'MediaBrowser.Server.Startup.Common')
-rw-r--r--MediaBrowser.Server.Startup.Common/ApplicationHost.cs4
-rw-r--r--MediaBrowser.Server.Startup.Common/Migrations/DbMigration.cs2
2 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
index 7f79653af..46dfd4469 100644
--- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
+++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs
@@ -328,6 +328,8 @@ namespace MediaBrowser.Server.Startup.Common
Logger.Info("Core startup complete");
HttpServer.GlobalResponse = null;
+ PerformPostInitMigrations();
+
Parallel.ForEach(GetExports<IServerEntryPoint>(), entryPoint =>
{
try
@@ -341,8 +343,6 @@ namespace MediaBrowser.Server.Startup.Common
});
LogManager.RemoveConsoleOutput();
-
- PerformPostInitMigrations();
}
public override Task Init(IProgress<double> progress)
diff --git a/MediaBrowser.Server.Startup.Common/Migrations/DbMigration.cs b/MediaBrowser.Server.Startup.Common/Migrations/DbMigration.cs
index 959543893..5a70467f7 100644
--- a/MediaBrowser.Server.Startup.Common/Migrations/DbMigration.cs
+++ b/MediaBrowser.Server.Startup.Common/Migrations/DbMigration.cs
@@ -25,7 +25,7 @@ namespace MediaBrowser.Server.Startup.Common.Migrations
Task.Run(async () =>
{
- await Task.Delay(1000).ConfigureAwait(false);
+ await Task.Delay(100).ConfigureAwait(false);
_taskManager.Execute<CleanDatabaseScheduledTask>();
});