2020-03-05 10:21:27 -05:00
|
|
|
using System;
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
|
|
|
namespace Jellyfin.Server.Migrations
|
|
|
|
{
|
2020-03-05 12:09:33 -05:00
|
|
|
/// <summary>
|
2020-03-06 15:51:50 -05:00
|
|
|
/// Interface that describes a migration routine.
|
2020-03-05 12:09:33 -05:00
|
|
|
/// </summary>
|
2020-03-06 15:51:50 -05:00
|
|
|
internal interface IMigrationRoutine
|
2020-03-05 12:09:33 -05:00
|
|
|
{
|
2020-03-05 10:21:27 -05:00
|
|
|
/// <summary>
|
2020-03-05 12:09:33 -05:00
|
|
|
/// Gets the name of the migration, must be unique.
|
2020-03-05 10:21:27 -05:00
|
|
|
/// </summary>
|
2020-03-06 15:51:50 -05:00
|
|
|
public string Name { get; }
|
2020-03-05 10:21:27 -05:00
|
|
|
|
2020-03-05 12:09:33 -05:00
|
|
|
/// <summary>
|
2020-03-05 12:52:00 -05:00
|
|
|
/// Execute the migration routine.
|
2020-03-05 12:09:33 -05:00
|
|
|
/// </summary>
|
|
|
|
/// <param name="host">Host that hosts current version.</param>
|
|
|
|
/// <param name="logger">Host logger.</param>
|
2020-03-06 15:51:50 -05:00
|
|
|
public void Perform(CoreAppHost host, ILogger logger);
|
2020-03-05 12:09:33 -05:00
|
|
|
}
|
2020-03-05 10:21:27 -05:00
|
|
|
}
|