Class PackageMigrationPlan
Represents a package migration plan.
Namespace: Umbraco.Cms.Core.Packaging
Assembly: Umbraco.Infrastructure.dll
Syntax
public abstract class PackageMigrationPlan : MigrationPlan, IDiscoverable
Constructors
View SourcePackageMigrationPlan(String)
Initializes a new instance of the PackageMigrationPlan class.
Declaration
protected PackageMigrationPlan(string packageName)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | The package name that the plan is for. If the package has a package.manifest these must match. |
PackageMigrationPlan(String, String)
Initializes a new instance of the PackageMigrationPlan class.
Declaration
protected PackageMigrationPlan(string packageName, string planName)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | The package name that the plan is for. If the package has a package.manifest these must match. |
System.String | planName | The plan name for the package. This should be the same name as the package name, if there is only one plan in the package. |
PackageMigrationPlan(String, String, String)
Initializes a new instance of the PackageMigrationPlan class.
Declaration
protected PackageMigrationPlan(string packageId, string packageName, string planName)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageId | The package identifier that the plan is for. If the package has a package.manifest these must match. |
System.String | packageName | The package name that the plan is for. If the package has a package.manifest these must match. |
System.String | planName | The plan name for the package. This should be the same name as the package name, if there is only one plan in the package. |
Properties
View SourceIgnoreCurrentState
Inform the plan executor to ignore all saved package state and run the migration from initial state to it's end state.
Declaration
public override bool IgnoreCurrentState { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
PackageId
Gets the package identifier.
Declaration
public string PackageId { get; set; }
Property Value
Type | Description |
---|---|
System.String | The package identifier. |
PackageName
Gets the package name.
Declaration
public string PackageName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The package name. |
Methods
View SourceDefinePlan()
Defines the plan.
Declaration
protected abstract void DefinePlan()