Files
Umbraco-CMS/src/Umbraco.Infrastructure/Migrations/IMigrationPlanExecutor.cs
Mole 46049bfd74 Obsolete things broken in migrations refactor (#13658)
* 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
2023-01-19 09:27:33 +01:00

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);
}
}