IMigrationRoutine.cs 828 B

123456789101112131415161718192021222324252627282930
  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. /// Gets a value indicating whether to perform migration on a new install.
  19. /// </summary>
  20. public bool PerformOnNewInstall { get; }
  21. /// <summary>
  22. /// Execute the migration routine.
  23. /// </summary>
  24. public void Perform();
  25. }
  26. }