IMigrationRoutine.cs 686 B

1234567891011121314151617181920212223242526
  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. public void Perform();
  22. }
  23. }