* Added configuration and checks for creation of default Umbraco data. * Fixed configuration binding issues. * Updated comments. * Added DefaultDataCreationSettings to the JSON schema. * Removed option to not install default relation types as Umbraco relies on (and will recreate) them if they aren't there. * Renamed configuration class used for install of default data and converted to named optios. * Fix to failing unit tests. * Fixes for integration tests. * Apply suggestions from code review Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com> * Further fix from code review. * Updated naming as per PR review suggestions. * Update src/Umbraco.Infrastructure/Migrations/Install/DatabaseDataCreator.cs Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com> Co-authored-by: Elitsa Marinovska <21998037+elit0451@users.noreply.github.com>
77 lines
4.7 KiB
C#
77 lines
4.7 KiB
C#
namespace Umbraco.Cms.Core
|
|
{
|
|
public static partial class Constants
|
|
{
|
|
public static class Configuration
|
|
{
|
|
/// <summary>
|
|
/// Case insensitive prefix for all configurations
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// ":" is used as marker for nested objects in json. E.g. "Umbraco:CMS:" = {"Umbraco":{"CMS":{....}}
|
|
/// </remarks>
|
|
public const string ConfigPrefix = "Umbraco:CMS:";
|
|
public const string ConfigContentPrefix = ConfigPrefix + "Content:";
|
|
public const string ConfigContentNotificationsPrefix = ConfigContentPrefix + "Notifications:";
|
|
public const string ConfigCorePrefix = ConfigPrefix + "Core:";
|
|
public const string ConfigCustomErrorsPrefix = ConfigPrefix + "CustomErrors:";
|
|
public const string ConfigGlobalPrefix = ConfigPrefix + "Global:";
|
|
public const string ConfigGlobalId = ConfigGlobalPrefix + "Id";
|
|
public const string ConfigHostingPrefix = ConfigPrefix + "Hosting:";
|
|
public const string ConfigModelsBuilderPrefix = ConfigPrefix + "ModelsBuilder:";
|
|
public const string ConfigSecurityPrefix = ConfigPrefix + "Security:";
|
|
public const string ConfigContentNotificationsEmail = ConfigContentNotificationsPrefix + "Email";
|
|
public const string ConfigContentMacroErrors = ConfigContentPrefix + "MacroErrors";
|
|
public const string ConfigGlobalUseHttps = ConfigGlobalPrefix + "UseHttps";
|
|
public const string ConfigHostingDebug = ConfigHostingPrefix + "Debug";
|
|
public const string ConfigCustomErrorsMode = ConfigCustomErrorsPrefix + "Mode";
|
|
public const string ConfigActiveDirectory = ConfigPrefix + "ActiveDirectory";
|
|
public const string ConfigLegacyPasswordMigration = ConfigPrefix + "LegacyPasswordMigration";
|
|
public const string ConfigContent = ConfigPrefix + "Content";
|
|
public const string ConfigCoreDebug = ConfigCorePrefix + "Debug";
|
|
public const string ConfigExceptionFilter = ConfigPrefix + "ExceptionFilter";
|
|
public const string ConfigGlobal = ConfigPrefix + "Global";
|
|
public const string ConfigUnattended = ConfigPrefix + "Unattended";
|
|
public const string ConfigHealthChecks = ConfigPrefix + "HealthChecks";
|
|
public const string ConfigHosting = ConfigPrefix + "Hosting";
|
|
public const string ConfigImaging = ConfigPrefix + "Imaging";
|
|
public const string ConfigExamine = ConfigPrefix + "Examine";
|
|
public const string ConfigKeepAlive = ConfigPrefix + "KeepAlive";
|
|
public const string ConfigLogging = ConfigPrefix + "Logging";
|
|
public const string ConfigMemberPassword = ConfigPrefix + "Security:MemberPassword";
|
|
public const string ConfigModelsBuilder = ConfigPrefix + "ModelsBuilder";
|
|
public const string ConfigNuCache = ConfigPrefix + "NuCache";
|
|
public const string ConfigPlugins = ConfigPrefix + "Plugins";
|
|
public const string ConfigRequestHandler = ConfigPrefix + "RequestHandler";
|
|
public const string ConfigRuntime = ConfigPrefix + "Runtime";
|
|
public const string ConfigRuntimeMinification = ConfigPrefix + "RuntimeMinification";
|
|
public const string ConfigRuntimeMinificationVersion = ConfigRuntimeMinification + ":Version";
|
|
public const string ConfigSecurity = ConfigPrefix + "Security";
|
|
public const string ConfigBasicAuth = ConfigPrefix + "BasicAuth";
|
|
public const string ConfigTours = ConfigPrefix + "Tours";
|
|
public const string ConfigTypeFinder = ConfigPrefix + "TypeFinder";
|
|
public const string ConfigWebRouting = ConfigPrefix + "WebRouting";
|
|
public const string ConfigUserPassword = ConfigPrefix + "Security:UserPassword";
|
|
public const string ConfigRichTextEditor = ConfigPrefix + "RichTextEditor";
|
|
public const string ConfigPackageMigration = ConfigPrefix + "PackageMigration";
|
|
public const string ConfigContentDashboard = ConfigPrefix + "ContentDashboard";
|
|
public const string ConfigHelpPage = ConfigPrefix + "HelpPage";
|
|
public const string ConfigInstallDefaultData = ConfigPrefix + "InstallDefaultData";
|
|
|
|
public static class NamedOptions
|
|
{
|
|
public static class InstallDefaultData
|
|
{
|
|
public const string Languages = "Languages";
|
|
|
|
public const string DataTypes = "DataTypes";
|
|
|
|
public const string MediaTypes = "MediaTypes";
|
|
|
|
public const string MemberTypes = "MemberTypes";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|