浏览代码

Change ChannelId and OwnerId to be expected strings

JPVenson 7 月之前
父节点
当前提交
a3ae055779
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs

+ 4 - 4
Jellyfin.Server/Migrations/Routines/MigrateLibraryDb.cs

@@ -645,9 +645,9 @@ public class MigrateLibraryDb : IMigrationRoutine
             entity.EndDate = endDate;
         }
 
-        if (reader.TryGetGuid(index++, out var guid))
+        if (reader.TryGetString(index++, out var guid))
         {
-            entity.ChannelId = guid.ToString("N");
+            entity.ChannelId = guid;
         }
 
         if (reader.TryGetBoolean(index++, out var isMovie))
@@ -986,9 +986,9 @@ public class MigrateLibraryDb : IMigrationRoutine
             entity.ShowId = showId;
         }
 
-        if (reader.TryGetGuid(index++, out var ownerId))
+        if (reader.TryGetString(index++, out var ownerId))
         {
-            entity.OwnerId = ownerId.ToString("N");
+            entity.OwnerId = ownerId;
         }
 
         return (entity, userDataKey);