Files
Umbraco-CMS/src/Umbraco.Core/RuntimeLevel.cs

41 lines
1.0 KiB
C#
Raw Normal View History

Adjust the runtime state and keep disabling unattended package migrations simple (#10486) * Clean up and changes to backoffice for the nuget only packages * temp commit of package logic removal * Lots of package code cleanup and removal * Removes old package data from the test package xml * Updates packaging code to take in XDocument instead of a file since we'll not be dealing with files, starts creating expressions for the package migrations scripting. * fixing tests * Fixes runtime state and boot failed middleware so that it actually runs. Separates out unattended install/upgrade into notification handlers. * Gets unattended package migrations working and running * Gets embedded package.xml resources able to install from package migration. * Implements automatic package migrations for package that just declare an xml data manifest. * fix build * small cleanups * fix build * adds some tests * Fix export test * Fix newlines in test for linux * Typo * removes old todos and updates AutomaticPackgeMigrationPlan to use getter with backing field. * Update dictionary package data to use GUID * Ensures macros are packaged and used with their GUID * Ensures the GUID for doc types and media types remains consistent for package installation based on what is in the xml. * fix automatic migrations to not validate initial state, fixes packaging GUIDs for multiple entities. * Added guids to embedded test packages (Some tests are still failing) * Fix one more test * Fixes up Key vs Id, moves tests to correct namespace, fix tests * Fixes Dictionary packaging to ensure an xml hierarchy * Fixes tests * fixes package xml * Removes the runtime PackageMigrations state, the state is just run if unattended migrations are disabled. * change log level * Small clean up and reuse of attribute Co-authored-by: Bjarke Berg <mail@bergmania.dk>
2021-06-17 18:00:49 +10:00
namespace Umbraco.Cms.Core
{
/// <summary>
/// Describes the levels in which the runtime can run.
/// </summary>
public enum RuntimeLevel
{
/// <summary>
/// The runtime has failed to boot and cannot run.
/// </summary>
BootFailed = -1,
/// <summary>
/// The level is unknown.
/// </summary>
Unknown = 0,
/// <summary>
/// The runtime is booting.
/// </summary>
Boot = 1,
/// <summary>
/// The runtime has detected that Umbraco is not installed at all, ie there is
/// no database, and is currently installing Umbraco.
/// </summary>
Install = 2,
/// <summary>
/// The runtime has detected an Umbraco install which needed to be upgraded, and
/// is currently upgrading Umbraco.
/// </summary>
Upgrade = 3,
/// <summary>
/// The runtime has detected an up-to-date Umbraco install and is running.
/// </summary>
Run = 100
}
2017-07-20 11:21:28 +02:00
}