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
This commit is contained in:
Mole
2023-01-19 09:27:33 +01:00
committed by GitHub
parent 0d4d3ce33c
commit 46049bfd74
14 changed files with 134 additions and 7 deletions

View File

@@ -4,5 +4,12 @@ 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);
}
}