From 45a51497b683d34be29bfecc273cd12bfe862a6b Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Fri, 17 Jun 2011 19:06:20 -0700 Subject: [PATCH] Fixed issue where migrration would run on every page load. --- NzbDrone.Core/Datastore/MigrationsHelper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NzbDrone.Core/Datastore/MigrationsHelper.cs b/NzbDrone.Core/Datastore/MigrationsHelper.cs index 644b473e8..cc21db325 100644 --- a/NzbDrone.Core/Datastore/MigrationsHelper.cs +++ b/NzbDrone.Core/Datastore/MigrationsHelper.cs @@ -12,6 +12,8 @@ namespace NzbDrone.Core.Datastore public static void Run(string connetionString, bool trace) { + if (IsMigrated) return; + IsMigrated = true; Logger.Info("Preparing run database migration"); try