IMigrationRoutine.cs 913 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using Jellyfin.Server.Implementations;
  3. using Microsoft.EntityFrameworkCore.Internal;
  4. namespace Jellyfin.Server.Migrations
  5. {
  6. /// <summary>
  7. /// Interface that describes a migration routine.
  8. /// </summary>
  9. internal interface IMigrationRoutine
  10. {
  11. /// <summary>
  12. /// Gets the unique id for this migration. This should never be modified after the migration has been created.
  13. /// </summary>
  14. public Guid Id { get; }
  15. /// <summary>
  16. /// Gets the display name of the migration.
  17. /// </summary>
  18. public string Name { get; }
  19. /// <summary>
  20. /// Gets a value indicating whether to perform migration on a new install.
  21. /// </summary>
  22. public bool PerformOnNewInstall { get; }
  23. /// <summary>
  24. /// Execute the migration routine.
  25. /// </summary>
  26. public void Perform();
  27. }
  28. }