mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 19:37:55 +02:00
23 lines
675 B
C#
23 lines
675 B
C#
using System;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Jellyfin.Server.Migrations
|
|
{
|
|
/// <summary>
|
|
/// Interface that descibes a migration routine.
|
|
/// </summary>
|
|
internal interface IUpdater
|
|
{
|
|
/// <summary>
|
|
/// Gets the name of the migration, must be unique.
|
|
/// </summary>
|
|
public abstract string Name { get; }
|
|
|
|
/// <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);
|
|
}
|
|
}
|