Search Results for

    Show / Hide Table of Contents
    View Source

    Class PackageMigrationSettings

    Typed configuration options for package migration settings.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Configuration.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class PackageMigrationSettings

    Properties

    View Source

    AllowComponentOverrideOfRunSchemaAndContentMigrations

    Gets or sets a value indicating whether components can override the configured value for RunSchemaAndContentMigrations.

    Declaration
    public bool AllowComponentOverrideOfRunSchemaAndContentMigrations { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    By default this is true and components can override the configured setting for RunSchemaAndContentMigrations. If an administrator wants explicit control over which environments migration steps installing schema and content can run, they can set this to false. Components should respect this and not override the configuration.

    View Source

    RunSchemaAndContentMigrations

    Gets or sets a value indicating whether package migration steps that install schema and content should run.

    Declaration
    public bool RunSchemaAndContentMigrations { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    By default this is true and schema and content defined in a package migration are installed. Using configuration, administrators can optionally switch this off in certain environments. Deployment tools such as Umbraco Deploy can also configure this option to run or not run these migration steps as is appropriate for normal use of the tool.

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • AllowComponentOverrideOfRunSchemaAndContentMigrations
      • RunSchemaAndContentMigrations
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX