aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations/MigrationsFactory.cs
diff options
context:
space:
mode:
authorMark Monteiro <marknr.monteiro@protonmail.com>2020-03-11 23:04:47 +0100
committerMark Monteiro <marknr.monteiro@protonmail.com>2020-03-11 23:04:47 +0100
commit99bf6edba27c48db6094d1364a7175a0af9158b5 (patch)
tree87ea497716c6e92ae9b7e3cfc540256350b05430 /Jellyfin.Server/Migrations/MigrationsFactory.cs
parentd437950ac30ee294ab275362abe711ae3c14ac32 (diff)
parent008a76cf4d7f04eee2f0e1b8d135ea835d7ec7e2 (diff)
Merge remote-tracking branch 'upstream/master' into support-running-without-web-content
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()
+ };
+ }
+ }
+}