* Obsolete chings changed in v13 * Fix tests * Obsolete Execute and add ExecutePlan with default implementation. This just calls the old implementation and creates an ExecutedMigrationPlan from the result In V13 this has its own implementation. * Mention notification in obsolete message
16 lines
432 B
C#
16 lines
432 B
C#
using Umbraco.Cms.Infrastructure.Migrations;
|
|
|
|
namespace Umbraco.Cms.Core.Migrations;
|
|
|
|
public interface IMigrationPlanExecutor
|
|
{
|
|
[Obsolete("Use ExecutePlan instead.")]
|
|
string Execute(MigrationPlan plan, string fromState);
|
|
|
|
ExecutedMigrationPlan ExecutePlan(MigrationPlan plan, string fromState)
|
|
{
|
|
var state = Execute(plan, fromState);
|
|
return new ExecutedMigrationPlan(plan, fromState, state);
|
|
}
|
|
}
|