2020-03-05 16:21:27 +01:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace Jellyfin.Server.Migrations
|
|
|
|
{
|
2020-03-05 18:09:33 +01:00
|
|
|
/// <summary>
|
2020-03-06 21:51:50 +01:00
|
|
|
/// Interface that describes a migration routine.
|
2020-03-05 18:09:33 +01:00
|
|
|
/// </summary>
|
2020-03-06 21:51:50 +01:00
|
|
|
internal interface IMigrationRoutine
|
2020-03-05 18:09:33 +01:00
|
|
|
{
|
2020-03-05 16:21:27 +01:00
|
|
|
/// <summary>
|
2020-03-08 16:05:31 +01:00
|
|
|
/// 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.
|
2020-03-05 16:21:27 +01:00
|
|
|
/// </summary>
|
2020-03-06 21:51:50 +01:00
|
|
|
public string Name { get; }
|
2020-03-05 16:21:27 +01:00
|
|
|
|
2020-03-05 18:09:33 +01:00
|
|
|
/// <summary>
|
2020-03-05 18:52:00 +01:00
|
|
|
/// Execute the migration routine.
|
2020-03-05 18:09:33 +01:00
|
|
|
/// </summary>
|
2020-04-17 05:40:32 +02:00
|
|
|
public void Perform();
|
2020-03-05 18:09:33 +01:00
|
|
|
}
|
2020-03-05 16:21:27 +01:00
|
|
|
}
|