IMigrationRoutine.cs 650 B

12345678910111213141516171819202122232425
  1. using System;
  2. namespace Jellyfin.Server.Migrations
  3. {
  4. /// <summary>
  5. /// Interface that describes a migration routine.
  6. /// </summary>
  7. internal interface IMigrationRoutine
  8. {
  9. /// <summary>
  10. /// Gets the unique id for this migration. This should never be modified after the migration has been created.
  11. /// </summary>
  12. public Guid Id { get; }
  13. /// <summary>
  14. /// Gets the display name of the migration.
  15. /// </summary>
  16. public string Name { get; }
  17. /// <summary>
  18. /// Execute the migration routine.
  19. /// </summary>
  20. public void Perform();
  21. }
  22. }