mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
* Added generalised backup for migrations * Added backup strategy to MigrateLibraryDb * Added missing namespace * Fix merge issues * Fixed style issue * change fast backup key to timestamp * Update src/Jellyfin.Database/Jellyfin.Database.Providers.Sqlite/SqliteDatabaseProvider.cs * Update Fields * applied review comments
33 lines
913 B
C#
33 lines
913 B
C#
using System;
|
|
using Jellyfin.Server.Implementations;
|
|
using Microsoft.EntityFrameworkCore.Internal;
|
|
|
|
namespace Jellyfin.Server.Migrations
|
|
{
|
|
/// <summary>
|
|
/// Interface that describes a migration routine.
|
|
/// </summary>
|
|
internal interface IMigrationRoutine
|
|
{
|
|
/// <summary>
|
|
/// 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; }
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether to perform migration on a new install.
|
|
/// </summary>
|
|
public bool PerformOnNewInstall { get; }
|
|
|
|
/// <summary>
|
|
/// Execute the migration routine.
|
|
/// </summary>
|
|
public void Perform();
|
|
}
|
|
}
|