From afc236316349dca7614c8086daa68f4634fcdcbb Mon Sep 17 00:00:00 2001 From: Martin Blackwell Date: Wed, 31 Aug 2016 16:22:41 +0100 Subject: [PATCH] Resolution for U4-8927 --- src/Umbraco.Core/Persistence/Migrations/MigrationRunner.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Core/Persistence/Migrations/MigrationRunner.cs b/src/Umbraco.Core/Persistence/Migrations/MigrationRunner.cs index 51751b07ad..af894c453c 100644 --- a/src/Umbraco.Core/Persistence/Migrations/MigrationRunner.cs +++ b/src/Umbraco.Core/Persistence/Migrations/MigrationRunner.cs @@ -171,8 +171,8 @@ namespace Umbraco.Core.Persistence.Migrations from migrationAttribute in migrationAttributes where migrationAttribute != null where - migrationAttribute.TargetVersion > currentVersionToCompare && - migrationAttribute.TargetVersion <= targetVersionToCompare && + migrationAttribute.TargetVersion > targetVersionToCompare && + migrationAttribute.TargetVersion <= currentVersionToCompare && migrationAttribute.ProductName == _productName && //filter if the migration specifies a minimum current version for which to execute (migrationAttribute.MinimumCurrentVersion == null || currentVersionToCompare >= migrationAttribute.MinimumCurrentVersion)