diff options
| author | Mark Monteiro <marknr.monteiro@protonmail.com> | 2020-03-08 16:05:31 +0100 |
|---|---|---|
| committer | Mark Monteiro <marknr.monteiro@protonmail.com> | 2020-03-08 16:05:31 +0100 |
| commit | 72bf920291d1c486aaf66544ccd6eb64c13e254b (patch) | |
| tree | e2d9b9dffd553964e775d067124866be3205d94b /Jellyfin.Server/Migrations/MigrationOptions.cs | |
| parent | 8dbb1c92573ba5cf3e4f8d953ffd6083a8ccbde4 (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/MigrationOptions.cs')
| -rw-r--r-- | Jellyfin.Server/Migrations/MigrationOptions.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Jellyfin.Server/Migrations/MigrationOptions.cs b/Jellyfin.Server/Migrations/MigrationOptions.cs index 6b7831158..d95354145 100644 --- a/Jellyfin.Server/Migrations/MigrationOptions.cs +++ b/Jellyfin.Server/Migrations/MigrationOptions.cs @@ -1,3 +1,6 @@ +using System; +using System.Collections.Generic; + namespace Jellyfin.Server.Migrations { /// <summary> @@ -10,14 +13,12 @@ namespace Jellyfin.Server.Migrations /// </summary> public MigrationOptions() { - Applied = System.Array.Empty<string>(); + Applied = new List<Guid>(); } -#pragma warning disable CA1819 // Properties should not return arrays /// <summary> - /// Gets or sets the list of applied migration routine names. + /// Gets the list of applied migration routine names. /// </summary> - public string[] Applied { get; set; } -#pragma warning restore CA1819 // Properties should not return arrays + public List<Guid> Applied { get; } } } |
