jellyfin/Jellyfin.Server/Migrations/IUpdater.cs

24 lines
675 B
C#
Raw Normal View History

using System;
using Microsoft.Extensions.Logging;
namespace Jellyfin.Server.Migrations
{
2020-03-05 18:09:33 +01:00
/// <summary>
/// Interface that descibes a migration routine.
/// </summary>
internal interface IUpdater
{
/// <summary>
2020-03-05 18:09:33 +01:00
/// Gets the name of the migration, must be unique.
/// </summary>
2020-03-05 18:09:33 +01:00
public abstract string Name { get; }
2020-03-05 18:09:33 +01:00
/// <summary>
/// Execute the migration from version "from".
/// </summary>
/// <param name="host">Host that hosts current version.</param>
/// <param name="logger">Host logger.</param>
public abstract void Perform(CoreAppHost host, ILogger logger);
}
}