Files
pgsql-jellyfin/Jellyfin.Server/Migrations/JellyfinMigrationBackupAttribute.cs
wjones af1152b001 Refactor: standardize namespace and using directive style
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
2026-02-20 16:26:53 -05:00

40 lines
1.4 KiB
C#

// <copyright file="JellyfinMigrationBackupAttribute.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace Jellyfin.Server.Migrations;
using System;
/// <summary>
/// Marks an <see cref="JellyfinMigrationAttribute"/> migration and instructs the <see cref="JellyfinMigrationService"/> to perform a backup.
/// </summary>
[AttributeUsage(System.AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
public sealed class JellyfinMigrationBackupAttribute : System.Attribute
{
/// <summary>
/// Gets or Sets a value indicating whether a backup of the old library.db should be performed.
/// </summary>
public bool LegacyLibraryDb { get; set; }
/// <summary>
/// Gets or Sets a value indicating whether a backup of the Database should be performed.
/// </summary>
public bool JellyfinDb { get; set; }
/// <summary>
/// Gets or Sets a value indicating whether a backup of the metadata folder should be performed.
/// </summary>
public bool Metadata { get; set; }
/// <summary>
/// Gets or Sets a value indicating whether a backup of the Trickplay folder should be performed.
/// </summary>
public bool Trickplay { get; set; }
/// <summary>
/// Gets or Sets a value indicating whether a backup of the Subtitles folder should be performed.
/// </summary>
public bool Subtitles { get; set; }
}