aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations/MigrationsFactory.cs
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-03-10 22:45:17 +0100
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-03-10 22:45:17 +0100
commit6131599e8808a6cdddba8ce0da82107cc662ae1c (patch)
treea43499ea871b5770465c0938a2bc20ae923a4d2d /Jellyfin.Server/Migrations/MigrationsFactory.cs
parent76957213e601e8f03c9975707d5e0a22b899207b (diff)
parent97bca5a9008ba94411c45572e690decc58805b85 (diff)
Merge branch 'master' into support-injecting-iconfiguration
Diffstat (limited to 'Jellyfin.Server/Migrations/MigrationsFactory.cs')
-rw-r--r--Jellyfin.Server/Migrations/MigrationsFactory.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/Jellyfin.Server/Migrations/MigrationsFactory.cs b/Jellyfin.Server/Migrations/MigrationsFactory.cs
new file mode 100644
index 000000000..23c1b1ee6
--- /dev/null
+++ b/Jellyfin.Server/Migrations/MigrationsFactory.cs
@@ -0,0 +1,20 @@
+using System.Collections.Generic;
+using MediaBrowser.Common.Configuration;
+
+namespace Jellyfin.Server.Migrations
+{
+ /// <summary>
+ /// A factory that can find a persistent file of the migration configuration, which lists all applied migrations.
+ /// </summary>
+ public class MigrationsFactory : IConfigurationFactory
+ {
+ /// <inheritdoc/>
+ public IEnumerable<ConfigurationStore> GetConfigurations()
+ {
+ return new[]
+ {
+ new MigrationsListStore()
+ };
+ }
+ }
+}