Resolution for U4-8927

This commit is contained in:
Martin Blackwell
2016-08-31 16:22:41 +01:00
parent af5455a500
commit afc2363163

View File

@@ -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)