mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Fixed GUID selector for typed based item
This commit is contained in:
parent
0639758abd
commit
6efcd6b873
@ -76,7 +76,7 @@ public class MigrateLibraryDb : IMigrationRoutine
|
|||||||
_logger.LogInformation("Saving UserData entries took {0}.", stepElapsed);
|
_logger.LogInformation("Saving UserData entries took {0}.", stepElapsed);
|
||||||
|
|
||||||
_logger.LogInformation("Start moving TypedBaseItem.");
|
_logger.LogInformation("Start moving TypedBaseItem.");
|
||||||
var typedBaseItemsQuery = "SELECT guid, type, data, StartDate, EndDate, ChannelId, IsMovie, IsSeries, EpisodeTitle, IsRepeat, CommunityRating, CustomRating, IndexNumber, IsLocked, PreferredMetadataLanguage, PreferredMetadataCountryCode, Width, Height, DateLastRefreshed, Name, Path, PremiereDate, Overview, ParentIndexNumber, ProductionYear, OfficialRating, ForcedSortName, RunTimeTicks, Size, DateCreated, DateModified, guid, Genres, ParentId, Audio, ExternalServiceId, IsInMixedFolder, DateLastSaved, LockedFields, Studios, Tags, TrailerTypes, OriginalTitle, PrimaryVersionId, DateLastMediaAdded, Album, LUFS, NormalizationGain, CriticRating, IsVirtualItem, SeriesName, UserDataKey, SeasonName, SeasonId, SeriesId, PresentationUniqueKey, InheritedParentalRatingValue, ExternalSeriesId, Tagline, ProviderIds, Images, ProductionLocations, ExtraIds, TotalBitrate, ExtraType, Artists, AlbumArtists, ExternalId, SeriesPresentationUniqueKey, ShowId, OwnerId FROM TypedBaseItems";
|
var typedBaseItemsQuery = "SELECT guid, type, data, StartDate, EndDate, ChannelId, IsMovie, IsSeries, EpisodeTitle, IsRepeat, CommunityRating, CustomRating, IndexNumber, IsLocked, PreferredMetadataLanguage, PreferredMetadataCountryCode, Width, Height, DateLastRefreshed, Name, Path, PremiereDate, Overview, ParentIndexNumber, ProductionYear, OfficialRating, ForcedSortName, RunTimeTicks, Size, DateCreated, DateModified, Genres, ParentId, Audio, ExternalServiceId, IsInMixedFolder, DateLastSaved, LockedFields, Studios, Tags, TrailerTypes, OriginalTitle, PrimaryVersionId, DateLastMediaAdded, Album, LUFS, NormalizationGain, CriticRating, IsVirtualItem, SeriesName, UserDataKey, SeasonName, SeasonId, SeriesId, PresentationUniqueKey, InheritedParentalRatingValue, ExternalSeriesId, Tagline, ProviderIds, Images, ProductionLocations, ExtraIds, TotalBitrate, ExtraType, Artists, AlbumArtists, ExternalId, SeriesPresentationUniqueKey, ShowId, OwnerId FROM TypedBaseItems";
|
||||||
dbContext.BaseItems.ExecuteDelete();
|
dbContext.BaseItems.ExecuteDelete();
|
||||||
|
|
||||||
var legacyBaseItemWithUserKeys = new Dictionary<string, BaseItemEntity>();
|
var legacyBaseItemWithUserKeys = new Dictionary<string, BaseItemEntity>();
|
||||||
@ -775,8 +775,6 @@ public class MigrateLibraryDb : IMigrationRoutine
|
|||||||
entity.DateModified = dateModified;
|
entity.DateModified = dateModified;
|
||||||
}
|
}
|
||||||
|
|
||||||
entity.Id = reader.GetGuid(index++);
|
|
||||||
|
|
||||||
if (reader.TryGetString(index++, out var genres))
|
if (reader.TryGetString(index++, out var genres))
|
||||||
{
|
{
|
||||||
entity.Genres = genres;
|
entity.Genres = genres;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user