Forces the initial migration state of V7 sites that are allowed to be migrated into v7.14 state.

This commit is contained in:
Bjarke Berg
2019-07-04 10:35:48 +02:00
committed by Sebastiaan Janssen
parent 57e3187e3a
commit 926acb910e

View File

@@ -74,6 +74,10 @@ namespace Umbraco.Core.Migrations.Upgrade
throw new InvalidOperationException($"Version {currentVersion} cannot be migrated to {UmbracoVersion.SemanticVersion}."
+ $" Please upgrade first to at least {minVersion}.");
// Force newer versions of 7, into 7.14, when migrating
if (currentVersion.Major == 7)
return GetInitState(minVersion);
// initial state is eg "{init-7.14.0}"
return GetInitState(currentVersion);
}