* Add AsyncMigrationBase, update base classes and call async methods * Restored and obsoleted synchronous execution on IMigrationPlanExecutor. * Resolved breaking changes. * Fixed build. * Further obsoletes. * Fix build against v16/dev. * Removed and obsolete code related to post-migrations. * Removed service registration of unused interface. --------- Co-authored-by: Andy Butland <abutland73@gmail.com>
27 lines
658 B
C#
27 lines
658 B
C#
namespace Umbraco.Cms.Infrastructure.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public abstract class UnscopedMigrationBase : UnscopedAsyncMigrationBase
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="UnscopedMigrationBase" /> class.
|
|
/// </summary>
|
|
/// <param name="context">The context.</param>
|
|
protected UnscopedMigrationBase(IMigrationContext context)
|
|
: base(context)
|
|
{ }
|
|
|
|
/// <inheritdoc />
|
|
protected override Task MigrateAsync()
|
|
{
|
|
Migrate();
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Executes the migration.
|
|
/// </summary>
|
|
protected abstract void Migrate();
|
|
}
|