Fix upgrade message

This commit is contained in:
Stephan
2018-10-22 10:34:04 +02:00
parent c401782d5e
commit d49e06255c
2 changed files with 9 additions and 10 deletions

View File

@@ -307,9 +307,9 @@ namespace Umbraco.Core.Runtime
throw new BootFailedException("A connection string is configured but Umbraco could not connect to the database.");
}
// if we already know we want to upgrade, no need to look for migrations...
if (_state.Level == RuntimeLevel.Upgrade)
return;
// if we already know we want to upgrade,
// still run EnsureUmbracoUpgradeState to get the states
// (v7 will just get a null state, that's ok)
// else
// look for a matching migration entry - bypassing services entirely - they are not 'up' yet