diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2020-03-07 21:14:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-07 21:14:14 -0500 |
| commit | 3d563ca3a3c8398617ef014f53ba9d0937a55d94 (patch) | |
| tree | d4d1ad6eb94a450ff6f2e299d97b6720086583f7 /Jellyfin.Server/Migrations/MigrationsFactory.cs | |
| parent | adc3ab19913e697ae0bd1fbf1cf8cda12041b71b (diff) | |
| parent | 1295f6c79bdf76274501838c9e42094e4b1dd3c0 (diff) | |
Merge pull request #2523 from JustAMan/logging-migration
Improve migrations so they are more maintainable
Diffstat (limited to 'Jellyfin.Server/Migrations/MigrationsFactory.cs')
| -rw-r--r-- | Jellyfin.Server/Migrations/MigrationsFactory.cs | 20 |
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() + }; + } + } +} |
