IMigrationRoutine.cs 844 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using Microsoft.Extensions.Logging;
  3. namespace Jellyfin.Server.Migrations
  4. {
  5. /// <summary>
  6. /// Interface that describes a migration routine.
  7. /// </summary>
  8. internal interface IMigrationRoutine
  9. {
  10. /// <summary>
  11. /// Gets the unique id for this migration. This should never be modified after the migration has been created.
  12. /// </summary>
  13. public Guid Id { get; }
  14. /// <summary>
  15. /// Gets the display name of the migration.
  16. /// </summary>
  17. public string Name { get; }
  18. /// <summary>
  19. /// Execute the migration routine.
  20. /// </summary>
  21. /// <param name="host">Host that hosts current version.</param>
  22. /// <param name="logger">Host logger.</param>
  23. public void Perform(CoreAppHost host, ILogger logger);
  24. }
  25. }