Files
Umbraco-CMS/src/Umbraco.Infrastructure/Migrations/UnscopedMigrationBase.cs
Ronald Barendse 13c788d6ec Add AsyncMigrationBase, update base classes and call async methods (#17057)
* 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>
2025-03-03 11:54:22 +01:00

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