mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 19:08:53 -07:00
72bf920291
Also use a list instead of an array to store executed migrations in the configuration class
29 lines
844 B
C#
29 lines
844 B
C#
using System;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Jellyfin.Server.Migrations
|
|
{
|
|
/// <summary>
|
|
/// Interface that describes a migration routine.
|
|
/// </summary>
|
|
internal interface IMigrationRoutine
|
|
{
|
|
/// <summary>
|
|
/// Gets the unique id for this migration. This should never be modified after the migration has been created.
|
|
/// </summary>
|
|
public Guid Id { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the display name of the migration.
|
|
/// </summary>
|
|
public string Name { get; }
|
|
|
|
/// <summary>
|
|
/// Execute the migration routine.
|
|
/// </summary>
|
|
/// <param name="host">Host that hosts current version.</param>
|
|
/// <param name="logger">Host logger.</param>
|
|
public void Perform(CoreAppHost host, ILogger logger);
|
|
}
|
|
}
|