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
This commit is contained in:
Mark Monteiro
2020-03-08 16:05:31 +01:00
parent 8dbb1c9257
commit 72bf920291
5 changed files with 22 additions and 13 deletions

View File

@@ -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; }