2020-03-08 08:05:31 -07:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
2020-03-05 10:09:33 -07:00
|
|
|
namespace Jellyfin.Server.Migrations
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Configuration part that holds all migrations that were applied.
|
|
|
|
/// </summary>
|
|
|
|
public class MigrationOptions
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the <see cref="MigrationOptions"/> class.
|
|
|
|
/// </summary>
|
|
|
|
public MigrationOptions()
|
|
|
|
{
|
2020-03-08 09:40:30 -07:00
|
|
|
Applied = new List<(Guid Id, string Name)>();
|
2020-03-05 10:09:33 -07:00
|
|
|
}
|
|
|
|
|
2021-03-08 21:57:38 -07:00
|
|
|
// .Net xml serializer can't handle interfaces
|
|
|
|
#pragma warning disable CA1002 // Do not expose generic lists
|
2020-03-05 10:09:33 -07:00
|
|
|
/// <summary>
|
2020-03-08 08:05:31 -07:00
|
|
|
/// Gets the list of applied migration routine names.
|
2020-03-05 10:09:33 -07:00
|
|
|
/// </summary>
|
2020-03-08 09:40:30 -07:00
|
|
|
public List<(Guid Id, string Name)> Applied { get; }
|
2021-03-08 21:57:38 -07:00
|
|
|
#pragma warning restore CA1002
|
2020-03-05 10:09:33 -07:00
|
|
|
}
|
|
|
|
}
|