MigrationOptions.cs 795 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Jellyfin.Server.Migrations
  4. {
  5. /// <summary>
  6. /// Configuration part that holds all migrations that were applied.
  7. /// </summary>
  8. public class MigrationOptions
  9. {
  10. /// <summary>
  11. /// Initializes a new instance of the <see cref="MigrationOptions"/> class.
  12. /// </summary>
  13. public MigrationOptions()
  14. {
  15. Applied = new List<(Guid Id, string Name)>();
  16. }
  17. // .Net xml serializer can't handle interfaces
  18. #pragma warning disable CA1002 // Do not expose generic lists
  19. /// <summary>
  20. /// Gets the list of applied migration routine names.
  21. /// </summary>
  22. public List<(Guid Id, string Name)> Applied { get; }
  23. #pragma warning restore CA1002
  24. }
  25. }