aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations/IMigrationRoutine.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Jellyfin.Server/Migrations/IMigrationRoutine.cs')
-rw-r--r--Jellyfin.Server/Migrations/IMigrationRoutine.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/Jellyfin.Server/Migrations/IMigrationRoutine.cs b/Jellyfin.Server/Migrations/IMigrationRoutine.cs
new file mode 100644
index 000000000..c1000eede
--- /dev/null
+++ b/Jellyfin.Server/Migrations/IMigrationRoutine.cs
@@ -0,0 +1,30 @@
+using System;
+
+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();
+ }
+}