Forces the initial migration state of V7 sites that are allowed to be migrated into v7.14 state.
This commit is contained in:
committed by
Sebastiaan Janssen
parent
57e3187e3a
commit
926acb910e
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user