aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server/Migrations
AgeCommit message (Collapse)Author
2023-01-14Remove AddPeopleQueryIndex migrationBond_009
2023-01-04Fix all warnings in Jellyfin.Api (#9003)Bond-009
2022-12-05Replace == null with is nullBond_009
2022-10-21remove JellyfinDbProvider and add second level cachingcvium
2022-05-20Merge pull request #7693 from crobibero/auth-migrateCody Robibero
(cherry picked from commit 3229ba4918cb31913b47c99c5a817dae3366f020) Signed-off-by: crobibero <cody@robibe.ro>
2022-02-28Fix migration of DateTime to EFCody Robibero
2021-12-27Remove more warningsCody Robibero
2021-12-14Fix crash on missing server config fileJoe Rogers
2021-12-14Update Jellyfin.Server/Migrations/MigrationRunner.csStoica Tedy
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2021-12-14Fixed crash in MigrationRunnerStoica Tedy
The crashed was caused by importing the migrationOptions even if the migrations.xml file is non existant. [Issue]: ~/.config/jellyfin/migrations.xml not found #6992
2021-11-27Update Jellyfin.Server/Migrations/MigrationRunner.csClaus Vium
Co-authored-by: Cody Robibero <cody@robibe.ro>
2021-11-24Remove stray datamembercvium
2021-11-24Migrate network configuration safelycvium
2021-11-11Fix nullability on DisplayPreferencesDtoCody Robibero
Remove duplicate, fix namespace
2021-10-03Fix warning: Type cast is redundant (#2149)KonH
2021-09-25Fix user DB migrationBond_009
2021-08-13Merge branch 'master' into authenticationdb-efcorePatrick Barron
# Conflicts: # Jellyfin.Server.Implementations/Security/AuthorizationContext.cs # MediaBrowser.Controller/Library/IUserManager.cs # MediaBrowser.Controller/Security/IAuthenticationRepository.cs # MediaBrowser.Controller/Session/ISessionManager.cs
2021-08-04Minor improvementsBond_009
2021-06-24Migrate DeviceOptionsPatrick Barron
2021-06-23Merge branch 'master' into authenticationdb-efcorePatrick Barron
# Conflicts: # Emby.Server.Implementations/QuickConnect/QuickConnectManager.cs # Emby.Server.Implementations/Session/SessionManager.cs # Jellyfin.Server.Implementations/Security/AuthorizationContext.cs
2021-06-21Fix migrationPatrick Barron
2021-06-19Move non-jellyfin extensions to separate projectBond_009
2021-06-18Merge branch 'master' into authenticationdb-efcorePatrick Barron
# Conflicts: # Emby.Server.Implementations/Devices/DeviceManager.cs # Emby.Server.Implementations/HttpServer/Security/SessionContext.cs # Emby.Server.Implementations/Security/AuthenticationRepository.cs # Emby.Server.Implementations/Session/SessionManager.cs # Jellyfin.Server.Implementations/Security/AuthorizationContext.cs # MediaBrowser.Controller/Library/IUserManager.cs # MediaBrowser.Controller/Net/ISessionContext.cs
2021-06-18Re-add support for API keysPatrick Barron
2021-06-18Add data migrationPatrick Barron
2021-05-20Enable nullable reference types for Emby.Server.ImplementationsBond_009
2021-04-29Merge pull request #5842 from BaronGreenback/optimizationBond-009
Code Clean up: Group Methods
2021-04-20Merge pull request #5873 from cvium/fix-displaypref-migrationBond-009
2021-04-20use int.Parsecvium
2021-04-20Check for empty string when migrating displaypreferencescvium
2021-04-19use IF NOT EXISTS in migrationcvium
2021-04-17Remove unused using directivesBaronGreenback
2021-04-17Group MethodsBaronGreenback
2021-04-12Fix random failing of testsBond_009
Fully initialize the configuration manager at the init stage ``` Failed Jellyfin.Server.Integration.Tests.Controllers.ActivityLogControllerTests.ActivityLog_GetEntries_Ok [2 s] Error Message: MediaBrowser.Common.Extensions.ResourceNotFoundException : Configuration with key metadata not found. Stack Trace: at Emby.Server.Implementations.AppBase.BaseConfigurationManager.<>c__DisplayClass43_0.<GetConfiguration>b__0(String k) in D:\a\1\s\Emby.Server.Implementations\AppBase\BaseConfigurationManager.cs:line 309 at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Emby.Server.Implementations.AppBase.BaseConfigurationManager.GetConfiguration(String key) in D:\a\1\s\Emby.Server.Implementations\AppBase\BaseConfigurationManager.cs:line 300 at MediaBrowser.Common.Configuration.ConfigurationManagerExtensions.GetConfiguration[T](IConfigurationManager manager, String key) in D:\a\1\s\MediaBrowser.Common\Configuration\IConfigurationManager.cs:line 88 at MediaBrowser.Controller.Library.MetadataConfigurationExtensions.GetMetadataConfiguration(IConfigurationManager config) in D:\a\1\s\MediaBrowser.Controller\Library\MetadataConfigurationStore.cs:line 28 at Emby.Server.Implementations.Library.ResolverHelper.SetDateCreated(BaseItem item, IFileSystem fileSystem, FileSystemMetadata info) in D:\a\1\s\Emby.Server.Implementations\Library\ResolverHelper.cs:line 159 at Emby.Server.Implementations.Library.ResolverHelper.EnsureDates(IFileSystem fileSystem, BaseItem item, ItemResolveArgs args) in D:\a\1\s\Emby.Server.Implementations\Library\ResolverHelper.cs:line 153 at Emby.Server.Implementations.Library.ResolverHelper.SetInitialItemValues(BaseItem item, ItemResolveArgs args, IFileSystem fileSystem, ILibraryManager libraryManager) in D:\a\1\s\Emby.Server.Implementations\Library\ResolverHelper.cs:line 81 at Emby.Server.Implementations.Library.LibraryManager.ResolveItem(ItemResolveArgs args, IItemResolver[] resolvers) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 480 at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, IDirectoryService directoryService, IItemResolver[] resolvers, Folder parent, String collectionType, LibraryOptions libraryOptions) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 618 at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, Folder parent) in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 536 at Emby.Server.Implementations.Library.LibraryManager.CreateRootFolder() in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 732 at Emby.Server.Implementations.Library.LibraryManager.get_RootFolder() in D:\a\1\s\Emby.Server.Implementations\Library\LibraryManager.cs:line 180 at Emby.Server.Implementations.IO.LibraryMonitor.Start() in D:\a\1\s\Emby.Server.Implementations\IO\LibraryMonitor.cs:line 135 at Emby.Server.Implementations.IO.LibraryMonitorStartup.RunAsync() in D:\a\1\s\Emby.Server.Implementations\IO\LibraryMonitorStartup.cs:line 26 at Emby.Server.Implementations.ApplicationHost.StartEntryPoints(IEnumerable`1 entryPoints, Boolean isBeforeStartup)+MoveNext() in D:\a\1\s\Emby.Server.Implementations\ApplicationHost.cs:line 541 at System.Threading.Tasks.Task.WhenAll(IEnumerable`1 tasks) at Emby.Server.Implementations.ApplicationHost.RunStartupTasksAsync(CancellationToken cancellationToken) in D:\a\1\s\Emby.Server.Implementations\ApplicationHost.cs:line 525 at Jellyfin.Server.Integration.Tests.JellyfinApplicationFactory.CreateServer(IWebHostBuilder builder) in D:\a\1\s\tests\Jellyfin.Server.Integration.Tests\JellyfinApplicationFactory.cs:line 101 at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.EnsureServer() at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(DelegatingHandler[] handlers) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateDefaultClient(Uri baseAddress, DelegatingHandler[] handlers) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient(WebApplicationFactoryClientOptions options) at Microsoft.AspNetCore.Mvc.Testing.WebApplicationFactory`1.CreateClient() at Jellyfin.Server.Integration.Tests.Controllers.ActivityLogControllerTests.ActivityLog_GetEntries_Ok() in D:\a\1\s\tests\Jellyfin.Server.Integration.Tests\Controllers\ActivityLogControllerTests.cs:line 21 --- End of stack trace from previous location --- ```
2021-03-14Merge branch 'master' into ef-cleanupPatrick Barron
# Conflicts: # Jellyfin.Data/Entities/Libraries/MediaFileStream.cs # Jellyfin.Data/Jellyfin.Data.csproj
2021-03-13FxCop -> Net Analyzers (part 2)Bond_009
2021-03-06Enable nullable for Jellyfin.Data and remove unnecessary attributesPatrick Barron
2021-02-21Use GetEncodingOptions where possibleBond_009
2021-01-12JsonSerializer deserialize from bytes where possibleBond_009
This is faster and uses way less memory ``` BenchmarkDotNet=v0.12.1, OS=fedora 32 Intel Core i7-6700HQ CPU 2.60GHz (Skylake), 1 CPU, 8 logical and 4 physical cores .NET Core SDK=5.0.100 [Host] : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT DefaultJob : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT | Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated | |------- |---------:|--------:|--------:|--------:|------:|------:|----------:| | Bytes | 158.4 us | 2.56 us | 2.14 us | 16.8457 | - | - | 52.08 KB | | String | 172.8 us | 0.78 us | 0.70 us | 41.5039 | - | - | 127.82 KB | | Custom | 155.5 us | 2.95 us | 2.76 us | 10.0098 | - | - | 31.27 KB | ```
2020-12-21Fix another key collision in MigrateDisplayPreferencesDatabasecrobibero
2020-12-16Merge pull request #4771 from crobibero/typed-get-preferenceClaus Vium
Use typed UserManager GetPreference
2020-12-11Use typed UserManager GetPreferencecrobibero
2020-12-06Remove CustomItemDisplayPreferences unique key collisioncrobibero
2020-12-04Merge pull request #4653 from crobibero/favorite-personsJoshua M. Boniface
Optimize FavoritePersons query
2020-12-04Merge pull request #4652 from crobibero/display-preferencesJoshua M. Boniface
Add support for custom item display preferences
2020-12-04Use md5 Guid for legacy compatcrobibero
2020-12-04Add ItemId to all display preferencescrobibero
2020-12-04Suggestions from code reviewcrobibero
2020-12-03Fix existing DisplayPreferences migrationcrobibero
2020-12-01Don't die if folder doesn't have idcrobibero