2021-02-18 11:06:02 +01:00
|
|
|
|
namespace Umbraco.Cms.Core
|
2019-01-10 14:03:25 +01:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Describes the reason for the runtime level.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public enum RuntimeLevelReason
|
|
|
|
|
|
{
|
2019-01-30 08:35:19 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The reason is unknown.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Unknown,
|
|
|
|
|
|
|
2019-01-10 14:03:25 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The code version is lower than the version indicated in web.config, and
|
|
|
|
|
|
/// downgrading Umbraco is not supported.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
BootFailedCannotDowngrade,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The runtime cannot connect to the configured database.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
BootFailedCannotConnectToDatabase,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The runtime can connect to the configured database, but it cannot
|
|
|
|
|
|
/// retrieve the migrations status.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
BootFailedCannotCheckUpgradeState,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// An exception was thrown during boot.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
BootFailedOnException,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Umbraco is not installed at all.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
InstallNoVersion,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A version is specified in web.config but the database is not configured.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>This is a weird state.</remarks>
|
|
|
|
|
|
InstallNoDatabase,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A version is specified in web.config and a database is configured, but the
|
|
|
|
|
|
/// database is missing, and installing over a missing database has been enabled.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
InstallMissingDatabase,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// A version is specified in web.config and a database is configured, but the
|
|
|
|
|
|
/// database is empty, and installing over an empty database has been enabled.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
InstallEmptyDatabase,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Umbraco runs an old version.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
UpgradeOldVersion,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Umbraco runs the current version but some migrations have not run.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
UpgradeMigrations,
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Umbraco is running.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Run
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|