aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations/IUpdater.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Server/Migrations/IUpdater.cs')
-rw-r--r--Jellyfin.Server/Migrations/IUpdater.cs31
1 files changed, 14 insertions, 17 deletions
diff --git a/Jellyfin.Server/Migrations/IUpdater.cs b/Jellyfin.Server/Migrations/IUpdater.cs
index 60d970256..10ada73d5 100644
--- a/Jellyfin.Server/Migrations/IUpdater.cs
+++ b/Jellyfin.Server/Migrations/IUpdater.cs
@@ -3,24 +3,21 @@ using Microsoft.Extensions.Logging;
namespace Jellyfin.Server.Migrations
{
+ /// <summary>
+ /// Interface that descibes a migration routine.
+ /// </summary>
+ internal interface IUpdater
+ {
/// <summary>
- /// Interface that descibes a migration routine.
+ /// Gets the name of the migration, must be unique.
/// </summary>
- internal interface IUpdater
- {
- /// <summary>
- /// Gets maximum version this Updater applies to.
- /// If current version is greater or equal to it, skip the updater.
- /// </summary>
- public abstract Version Maximum { get; }
+ public abstract string Name { get; }
- /// <summary>
- /// Execute the migration from version "from".
- /// </summary>
- /// <param name="host">Host that hosts current version.</param>
- /// <param name="logger">Host logger.</param>
- /// <param name="from">Version to migrate from.</param>
- /// <returns>Whether configuration was changed.</returns>
- public abstract bool Perform(CoreAppHost host, ILogger logger, Version from);
- }
+ /// <summary>
+ /// Execute the migration from version "from".
+ /// </summary>
+ /// <param name="host">Host that hosts current version.</param>
+ /// <param name="logger">Host logger.</param>
+ public abstract void Perform(CoreAppHost host, ILogger logger);
+ }
}