IUpdater.cs 663 B

1234567891011121314151617181920212223
  1. using System;
  2. using Microsoft.Extensions.Logging;
  3. namespace Jellyfin.Server.Migrations
  4. {
  5. /// <summary>
  6. /// Interface that descibes a migration routine.
  7. /// </summary>
  8. internal interface IUpdater
  9. {
  10. /// <summary>
  11. /// Gets the name of the migration, must be unique.
  12. /// </summary>
  13. public abstract string Name { get; }
  14. /// <summary>
  15. /// Execute the migration routine.
  16. /// </summary>
  17. /// <param name="host">Host that hosts current version.</param>
  18. /// <param name="logger">Host logger.</param>
  19. public abstract void Perform(CoreAppHost host, ILogger logger);
  20. }
  21. }