diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-10-24 10:55:12 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-10-24 10:55:12 +0200 |
| commit | ee3a982374c0df337af5b78e0e6eef95f47d551b (patch) | |
| tree | a4e45eaee43c16a55bbc2364a4f3df7bb3a51bfe | |
| parent | d95c2e1425d0d902e8191260ba9151f686aa2650 (diff) | |
Replace obsolet migration annotations
19 files changed, 0 insertions, 39 deletions
diff --git a/Jellyfin.Server/Migrations/JellyfinMigrationAttribute.cs b/Jellyfin.Server/Migrations/JellyfinMigrationAttribute.cs index 70e54125b8..f07693c8e0 100644 --- a/Jellyfin.Server/Migrations/JellyfinMigrationAttribute.cs +++ b/Jellyfin.Server/Migrations/JellyfinMigrationAttribute.cs @@ -17,9 +17,7 @@ public sealed class JellyfinMigrationAttribute : Attribute /// </summary> /// <param name="order">The ordering this migration should be applied to. Must be a valid DateTime ISO8601 formatted string.</param> /// <param name="name">The name of this Migration.</param> -#pragma warning disable CS0618 // Type or member is obsolete public JellyfinMigrationAttribute(string order, string name) : this(order, name, null) -#pragma warning restore CS0618 // Type or member is obsolete { } @@ -29,7 +27,6 @@ public sealed class JellyfinMigrationAttribute : Attribute /// <param name="order">The ordering this migration should be applied to. Must be a valid DateTime ISO8601 formatted string.</param> /// <param name="name">The name of this Migration.</param> /// <param name="key">[ONLY FOR LEGACY MIGRATIONS]The unique key of this migration. Must be a valid Guid formatted string.</param> - [Obsolete("This Constructor should only be used for Legacy migrations. Use the (Order,Name) one for all new ones instead.")] public JellyfinMigrationAttribute(string order, string name, string? key) { Order = DateTime.Parse(order, CultureInfo.InvariantCulture); diff --git a/Jellyfin.Server/Migrations/PreStartupRoutines/CreateNetworkConfiguration.cs b/Jellyfin.Server/Migrations/PreStartupRoutines/CreateNetworkConfiguration.cs index 048771df18..87cbe0477c 100644 --- a/Jellyfin.Server/Migrations/PreStartupRoutines/CreateNetworkConfiguration.cs +++ b/Jellyfin.Server/Migrations/PreStartupRoutines/CreateNetworkConfiguration.cs @@ -10,9 +10,7 @@ using Microsoft.Extensions.Logging; namespace Jellyfin.Server.Migrations.PreStartupRoutines; /// <inheritdoc /> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T00:00:00", nameof(CreateNetworkConfiguration), "9B354818-94D5-4B68-AC49-E35CB85F9D84", Stage = Stages.JellyfinMigrationStageTypes.PreInitialisation)] -#pragma warning restore CS0618 // Type or member is obsolete public class CreateNetworkConfiguration : IAsyncMigrationRoutine { private readonly ServerApplicationPaths _applicationPaths; diff --git a/Jellyfin.Server/Migrations/PreStartupRoutines/MigrateEncodingOptions.cs b/Jellyfin.Server/Migrations/PreStartupRoutines/MigrateEncodingOptions.cs index 30f4d89c31..78b8697baf 100644 --- a/Jellyfin.Server/Migrations/PreStartupRoutines/MigrateEncodingOptions.cs +++ b/Jellyfin.Server/Migrations/PreStartupRoutines/MigrateEncodingOptions.cs @@ -12,9 +12,7 @@ using Microsoft.Extensions.Logging; namespace Jellyfin.Server.Migrations.PreStartupRoutines; /// <inheritdoc /> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T03:00:00", nameof(MigrateEncodingOptions), "A8E61960-7726-4450-8F3D-82C12DAABBCB", Stage = Stages.JellyfinMigrationStageTypes.PreInitialisation)] -#pragma warning restore CS0618 // Type or member is obsolete public class MigrateEncodingOptions : IAsyncMigrationRoutine { private readonly ServerApplicationPaths _applicationPaths; diff --git a/Jellyfin.Server/Migrations/PreStartupRoutines/MigrateMusicBrainzTimeout.cs b/Jellyfin.Server/Migrations/PreStartupRoutines/MigrateMusicBrainzTimeout.cs index 95b17c5ae2..3eb26b8689 100644 --- a/Jellyfin.Server/Migrations/PreStartupRoutines/MigrateMusicBrainzTimeout.cs +++ b/Jellyfin.Server/Migrations/PreStartupRoutines/MigrateMusicBrainzTimeout.cs @@ -11,9 +11,7 @@ using Microsoft.Extensions.Logging; namespace Jellyfin.Server.Migrations.PreStartupRoutines; /// <inheritdoc /> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T02:00:00", nameof(MigrateMusicBrainzTimeout), "A6DCACF4-C057-4Ef9-80D3-61CEF9DDB4F0", Stage = Stages.JellyfinMigrationStageTypes.PreInitialisation)] -#pragma warning restore CS0618 // Type or member is obsolete public class MigrateMusicBrainzTimeout : IAsyncMigrationRoutine { private readonly ServerApplicationPaths _applicationPaths; diff --git a/Jellyfin.Server/Migrations/PreStartupRoutines/RenameEnableGroupingIntoCollections.cs b/Jellyfin.Server/Migrations/PreStartupRoutines/RenameEnableGroupingIntoCollections.cs index 0ccddc78d1..a33bd4004b 100644 --- a/Jellyfin.Server/Migrations/PreStartupRoutines/RenameEnableGroupingIntoCollections.cs +++ b/Jellyfin.Server/Migrations/PreStartupRoutines/RenameEnableGroupingIntoCollections.cs @@ -11,9 +11,7 @@ using Microsoft.Extensions.Logging; namespace Jellyfin.Server.Migrations.PreStartupRoutines; /// <inheritdoc /> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T04:00:00", nameof(RenameEnableGroupingIntoCollections), "E73B777D-CD5C-4E71-957A-B86B3660B7CF", Stage = Stages.JellyfinMigrationStageTypes.PreInitialisation)] -#pragma warning restore CS0618 // Type or member is obsolete public class RenameEnableGroupingIntoCollections : IAsyncMigrationRoutine { private readonly ServerApplicationPaths _applicationPaths; diff --git a/Jellyfin.Server/Migrations/Routines/20250420050000_DisableTranscodingThrottling.cs b/Jellyfin.Server/Migrations/Routines/20250420050000_DisableTranscodingThrottling.cs index e4eecd0d6a..4e0046f254 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420050000_DisableTranscodingThrottling.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420050000_DisableTranscodingThrottling.cs @@ -9,9 +9,7 @@ namespace Jellyfin.Server.Migrations.Routines /// <summary> /// Disable transcode throttling for all installations since it is currently broken for certain video formats. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T05:00:00", nameof(DisableTranscodingThrottling), "4124C2CD-E939-4FFB-9BE9-9B311C413638")] -#pragma warning restore CS0618 // Type or member is obsolete internal class DisableTranscodingThrottling : IAsyncMigrationRoutine { private readonly ILogger<DisableTranscodingThrottling> _logger; diff --git a/Jellyfin.Server/Migrations/Routines/20250420060000_CreateUserLoggingConfigFile.cs b/Jellyfin.Server/Migrations/Routines/20250420060000_CreateUserLoggingConfigFile.cs index b8e2fd9dad..bfbc5a9dad 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420060000_CreateUserLoggingConfigFile.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420060000_CreateUserLoggingConfigFile.cs @@ -14,9 +14,7 @@ namespace Jellyfin.Server.Migrations.Routines /// If the deprecated logging.json file exists and has a custom config, it will be used as logging.user.json, /// otherwise a blank file will be created. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T06:00:00", nameof(CreateUserLoggingConfigFile), "EF103419-8451-40D8-9F34-D1A8E93A1679")] -#pragma warning restore CS0618 // Type or member is obsolete internal class CreateUserLoggingConfigFile : IAsyncMigrationRoutine { /// <summary> diff --git a/Jellyfin.Server/Migrations/Routines/20250420070000_MigrateActivityLogDb.cs b/Jellyfin.Server/Migrations/Routines/20250420070000_MigrateActivityLogDb.cs index 2d909139d6..c4d4495201 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420070000_MigrateActivityLogDb.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420070000_MigrateActivityLogDb.cs @@ -16,9 +16,7 @@ namespace Jellyfin.Server.Migrations.Routines /// <summary> /// The migration routine for migrating the activity log database to EF Core. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T07:00:00", nameof(MigrateActivityLogDb), "3793eb59-bc8c-456c-8b9f-bd5a62a42978")] -#pragma warning restore CS0618 // Type or member is obsolete public class MigrateActivityLogDb : IAsyncMigrationRoutine { private const string DbFilename = "activitylog.db"; diff --git a/Jellyfin.Server/Migrations/Routines/20250420080000_RemoveDuplicateExtras.cs b/Jellyfin.Server/Migrations/Routines/20250420080000_RemoveDuplicateExtras.cs index 6f2ed972bc..3cc4c4f9ed 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420080000_RemoveDuplicateExtras.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420080000_RemoveDuplicateExtras.cs @@ -14,9 +14,7 @@ namespace Jellyfin.Server.Migrations.Routines; /// <summary> /// Remove duplicate entries which were caused by a bug where a file was considered to be an "Extra" to itself. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T08:00:00", nameof(RemoveDuplicateExtras), "ACBE17B7-8435-4A83-8B64-6FCF162CB9BD")] -#pragma warning restore CS0618 // Type or member is obsolete internal class RemoveDuplicateExtras : IAsyncMigrationRoutine { private const string DbFilename = "library.db"; diff --git a/Jellyfin.Server/Migrations/Routines/20250420090000_AddDefaultPluginRepository.cs b/Jellyfin.Server/Migrations/Routines/20250420090000_AddDefaultPluginRepository.cs index 365b3ba68e..c705f8513f 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420090000_AddDefaultPluginRepository.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420090000_AddDefaultPluginRepository.cs @@ -9,9 +9,7 @@ namespace Jellyfin.Server.Migrations.Routines /// <summary> /// Migration to initialize system configuration with the default plugin repository. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T09:00:00", nameof(AddDefaultPluginRepository), "EB58EBEE-9514-4B9B-8225-12E1A40020DF", RunMigrationOnSetup = true)] -#pragma warning restore CS0618 // Type or member is obsolete public class AddDefaultPluginRepository : IAsyncMigrationRoutine { private readonly IServerConfigurationManager _serverConfigurationManager; diff --git a/Jellyfin.Server/Migrations/Routines/20250420100000_MigrateUserDb.cs b/Jellyfin.Server/Migrations/Routines/20250420100000_MigrateUserDb.cs index 754fa5d7ab..f577a9d9fa 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420100000_MigrateUserDb.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420100000_MigrateUserDb.cs @@ -24,9 +24,7 @@ namespace Jellyfin.Server.Migrations.Routines; /// <summary> /// The migration routine for migrating the user database to EF Core. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T10:00:00", nameof(MigrateUserDb), "5C4B82A2-F053-4009-BD05-B6FCAD82F14C")] -#pragma warning restore CS0618 // Type or member is obsolete public class MigrateUserDb : IAsyncMigrationRoutine { private const string DbFilename = "users.db"; diff --git a/Jellyfin.Server/Migrations/Routines/20250420110000_ReaddDefaultPluginRepository.cs b/Jellyfin.Server/Migrations/Routines/20250420110000_ReaddDefaultPluginRepository.cs index 4fe9c20572..df2a8cef98 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420110000_ReaddDefaultPluginRepository.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420110000_ReaddDefaultPluginRepository.cs @@ -9,9 +9,7 @@ namespace Jellyfin.Server.Migrations.Routines; /// <summary> /// Migration to initialize system configuration with the default plugin repository. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T11:00:00", nameof(ReaddDefaultPluginRepository), "5F86E7F6-D966-4C77-849D-7A7B40B68C4E", RunMigrationOnSetup = true)] -#pragma warning restore CS0618 // Type or member is obsolete public class ReaddDefaultPluginRepository : IAsyncMigrationRoutine { private readonly IServerConfigurationManager _serverConfigurationManager; diff --git a/Jellyfin.Server/Migrations/Routines/20250420120000_MigrateDisplayPreferencesDb.cs b/Jellyfin.Server/Migrations/Routines/20250420120000_MigrateDisplayPreferencesDb.cs index 332895c4ab..b3d08790dc 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420120000_MigrateDisplayPreferencesDb.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420120000_MigrateDisplayPreferencesDb.cs @@ -22,9 +22,7 @@ namespace Jellyfin.Server.Migrations.Routines /// <summary> /// The migration routine for migrating the display preferences database to EF Core. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T12:00:00", nameof(MigrateDisplayPreferencesDb), "06387815-C3CC-421F-A888-FB5F9992BEA8")] -#pragma warning restore CS0618 // Type or member is obsolete public class MigrateDisplayPreferencesDb : IAsyncMigrationRoutine { private const string DbFilename = "displaypreferences.db"; diff --git a/Jellyfin.Server/Migrations/Routines/20250420130000_RemoveDownloadImagesInAdvance.cs b/Jellyfin.Server/Migrations/Routines/20250420130000_RemoveDownloadImagesInAdvance.cs index ae48eba8cd..805a25decd 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420130000_RemoveDownloadImagesInAdvance.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420130000_RemoveDownloadImagesInAdvance.cs @@ -10,9 +10,7 @@ namespace Jellyfin.Server.Migrations.Routines; /// <summary> /// Removes the old 'RemoveDownloadImagesInAdvance' from library options. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T13:00:00", nameof(RemoveDownloadImagesInAdvance), "A81F75E0-8F43-416F-A5E8-516CCAB4D8CC")] -#pragma warning restore CS0618 // Type or member is obsolete internal class RemoveDownloadImagesInAdvance : IAsyncMigrationRoutine { private readonly ILogger<RemoveDownloadImagesInAdvance> _logger; diff --git a/Jellyfin.Server/Migrations/Routines/20250420140000_MigrateAuthenticationDb.cs b/Jellyfin.Server/Migrations/Routines/20250420140000_MigrateAuthenticationDb.cs index f9e2e488a7..e71f802985 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420140000_MigrateAuthenticationDb.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420140000_MigrateAuthenticationDb.cs @@ -18,9 +18,7 @@ namespace Jellyfin.Server.Migrations.Routines /// <summary> /// A migration that moves data from the authentication database into the new schema. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T14:00:00", nameof(MigrateAuthenticationDb), "5BD72F41-E6F3-4F60-90AA-09869ABE0E22")] -#pragma warning restore CS0618 // Type or member is obsolete public class MigrateAuthenticationDb : IAsyncMigrationRoutine { private const string DbFilename = "authentication.db"; diff --git a/Jellyfin.Server/Migrations/Routines/20250420150000_FixPlaylistOwner.cs b/Jellyfin.Server/Migrations/Routines/20250420150000_FixPlaylistOwner.cs index 5c46c1bc37..eda91958eb 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420150000_FixPlaylistOwner.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420150000_FixPlaylistOwner.cs @@ -14,9 +14,7 @@ namespace Jellyfin.Server.Migrations.Routines; /// <summary> /// Properly set playlist owner. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T15:00:00", nameof(FixPlaylistOwner), "615DFA9E-2497-4DBB-A472-61938B752C5B")] -#pragma warning restore CS0618 // Type or member is obsolete internal class FixPlaylistOwner : IAsyncMigrationRoutine { private readonly ILogger<FixPlaylistOwner> _logger; diff --git a/Jellyfin.Server/Migrations/Routines/20250420160000_AddDefaultCastReceivers.cs b/Jellyfin.Server/Migrations/Routines/20250420160000_AddDefaultCastReceivers.cs index c68a51b0fb..e52b03f757 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420160000_AddDefaultCastReceivers.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420160000_AddDefaultCastReceivers.cs @@ -9,9 +9,7 @@ namespace Jellyfin.Server.Migrations.Routines; /// <summary> /// Migration to add the default cast receivers to the system config. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T16:00:00", nameof(AddDefaultCastReceivers), "34A1A1C4-5572-418E-A2F8-32CDFE2668E8", RunMigrationOnSetup = true)] -#pragma warning restore CS0618 // Type or member is obsolete public class AddDefaultCastReceivers : IAsyncMigrationRoutine { private readonly IServerConfigurationManager _serverConfigurationManager; diff --git a/Jellyfin.Server/Migrations/Routines/20250420170000_UpdateDefaultPluginRepository.cs b/Jellyfin.Server/Migrations/Routines/20250420170000_UpdateDefaultPluginRepository.cs index 815f43d2d1..a97dbef707 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420170000_UpdateDefaultPluginRepository.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420170000_UpdateDefaultPluginRepository.cs @@ -8,9 +8,7 @@ namespace Jellyfin.Server.Migrations.Routines; /// <summary> /// Migration to update the default Jellyfin plugin repository. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T17:00:00", nameof(UpdateDefaultPluginRepository), "852816E0-2712-49A9-9240-C6FC5FCAD1A8", RunMigrationOnSetup = true)] -#pragma warning restore CS0618 // Type or member is obsolete public class UpdateDefaultPluginRepository : IAsyncMigrationRoutine { private const string NewRepositoryUrl = "https://repo.jellyfin.org/files/plugin/manifest.json"; diff --git a/Jellyfin.Server/Migrations/Routines/20250420180000_FixAudioData.cs b/Jellyfin.Server/Migrations/Routines/20250420180000_FixAudioData.cs index 012e2c86dc..a736ccb4ec 100644 --- a/Jellyfin.Server/Migrations/Routines/20250420180000_FixAudioData.cs +++ b/Jellyfin.Server/Migrations/Routines/20250420180000_FixAudioData.cs @@ -13,9 +13,7 @@ namespace Jellyfin.Server.Migrations.Routines /// <summary> /// Fixes the data column of audio types to be deserializable. /// </summary> -#pragma warning disable CS0618 // Type or member is obsolete [JellyfinMigration("2025-04-20T18:00:00", nameof(FixAudioData), "CF6FABC2-9FBE-4933-84A5-FFE52EF22A58")] -#pragma warning restore CS0618 // Type or member is obsolete [JellyfinMigrationBackup(LegacyLibraryDb = true)] internal class FixAudioData : IAsyncMigrationRoutine { |
