Fix Upgrader - was updating even when nothing happened

This commit is contained in:
Stephan
2018-05-30 12:21:55 +02:00
parent 721a239d4a
commit 4f8973a043

View File

@@ -60,7 +60,7 @@ namespace Umbraco.Core.Migrations.Upgrade
// save new state
if (forceState)
_keyValueService.SetValue(StateValueKey, state);
else
else if (currentState != state)
_keyValueService.SetValue(StateValueKey, currentState, state);
// run post-migrations