Adds check to DetermineInstalledVersion to detect if it's 7.6 based on the new DB changes

This commit is contained in:
Shannon
2016-12-22 16:36:25 +11:00
parent 886942c4e8
commit 8083edddb9

View File

@@ -136,6 +136,12 @@ namespace Umbraco.Core.Persistence.Migrations.Initial
return new Version(7, 4, 0);
}
//if the error indicates a problem with the column cmsMacroProperty.uniquePropertyId then it is not version 7.6 since that is when it is added
if (Errors.Any(x => x.Item1.Equals("Column") && (x.Item2.InvariantEquals("cmsMacroProperty,uniquePropertyId"))))
{
return new Version(7, 5, 0);
}
return UmbracoVersion.Current;
}