aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations/IMigrationRoutine.cs
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-03-08 16:05:31 +0100
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-03-08 16:05:31 +0100
commit72bf920291d1c486aaf66544ccd6eb64c13e254b (patch)
treee2d9b9dffd553964e775d067124866be3205d94b /Jellyfin.Server/Migrations/IMigrationRoutine.cs
parent8dbb1c92573ba5cf3e4f8d953ffd6083a8ccbde4 (diff)
Use a Guid to uniquely identify migrations instead of a string name
Also use a list instead of an array to store executed migrations in the configuration class
Diffstat (limited to 'Jellyfin.Server/Migrations/IMigrationRoutine.cs')
-rw-r--r--Jellyfin.Server/Migrations/IMigrationRoutine.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Jellyfin.Server/Migrations/IMigrationRoutine.cs b/Jellyfin.Server/Migrations/IMigrationRoutine.cs
index 20a3aa3d6..eab995d67 100644
--- a/Jellyfin.Server/Migrations/IMigrationRoutine.cs
+++ b/Jellyfin.Server/Migrations/IMigrationRoutine.cs
@@ -9,7 +9,12 @@ namespace Jellyfin.Server.Migrations
internal interface IMigrationRoutine
{
/// <summary>
- /// Gets the name of the migration, must be unique.
+ /// Gets the unique id for this migration. This should never be modified after the migration has been created.
+ /// </summary>
+ public Guid Id { get; }
+
+ /// <summary>
+ /// Gets the display name of the migration.
/// </summary>
public string Name { get; }