Class PackageMigrationPlan
Base class for package migration plans
Namespace: Umbraco.Cms.Core.Packaging
Assembly: Umbraco.Infrastructure.dll
Syntax
public abstract class PackageMigrationPlan : MigrationPlan, IDiscoverable
Constructors
View SourcePackageMigrationPlan(String)
Creates a package migration plan
Declaration
protected PackageMigrationPlan(string packageName)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | The name of the package. If the package has a package.manifest these must match. |
PackageMigrationPlan(String, String)
Create a plan for a Package Name
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. |
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 |
PackageName
Returns the Package Name for this plan
Declaration
public string PackageName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
View SourceDefinePlan()
Declaration
protected abstract void DefinePlan()